projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f972db0
)
Win: layers (draw_state.c): Fix compilation error on Windows.
author
Ian Elliott
<ian@lunarg.com>
Thu, 26 Feb 2015 00:34:46 +0000
(17:34 -0700)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/layers/draw_state.c
b/layers/draw_state.c
index
0b7bfc7
..
39745d1
100644
(file)
--- 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";