Win: layers (draw_state.c): Fix compilation error on Windows.
authorIan Elliott <ian@lunarg.com>
Thu, 26 Feb 2015 00:34:46 +0000 (17:34 -0700)
committerIan Elliott <ian@lunarg.com>
Thu, 26 Feb 2015 00:36:25 +0000 (17:36 -0700)
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];

layers/draw_state.c

index 0b7bfc7..39745d1 100644 (file)
@@ -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";