aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Elliott <ian@lunarg.com>2015-02-25 17:34:46 -0700
committerIan Elliott <ian@lunarg.com>2015-02-25 17:36:25 -0700
commit154fe636ee893b6835c2b8f9a8f2bfc0432c7067 (patch)
tree5d31c7a6497a3f00ee7be4f1aea5065a004aaf5f
parentf972db03b2c7f49f64c29b00360844c748cf77f8 (diff)
downloadusermoji-154fe636ee893b6835c2b8f9a8f2bfc0432c7067.tar.xz
Win: layers (draw_state.c): Fix compilation error on Windows.
Visual Studio doesn't like: static const uint32_t NUM_COLORS = 7; char* edgeColors[NUM_COLORS]; Instead, we need to do: char* edgeColors[NUM_COLORS];
-rw-r--r--layers/draw_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/draw_state.c b/layers/draw_state.c
index 0b7bfc78..39745d15 100644
--- a/layers/draw_state.c
+++ b/layers/draw_state.c
@@ -1311,7 +1311,7 @@ static void dsDumpDot(const XGL_CMD_BUFFER cb, FILE* pOutFile)
fprintf(pOutFile, "<TR><TD PORT=\"slot%u\">slot%u</TD></TR>", i, i);
}
}
- static const uint32_t NUM_COLORS = 7;
+#define NUM_COLORS 7
char* edgeColors[NUM_COLORS];
edgeColors[0] = "0000ff";
edgeColors[1] = "ff00ff";