summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo.h
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2017-05-30 15:30:38 -0500
committerRob Herring <[email protected]>2017-06-07 20:44:26 -0500
commitf4b5510872b94a434a5223e35a67db322aad5e8b (patch)
treeb3002db5c1f8a80711bdca45df3ec6aabf39931a /src/mesa/vbo/vbo.h
parent18348a383dae41567fd333db6f848fbc8ff7d99b (diff)
mesa/main: fix gl_buffer_index enum comparison
For clang, enums are unsigned by default and gives the following warning: external/mesa3d/src/mesa/main/buffers.c:764:21: warning: comparison of constant -1 with expression of type 'gl_buffer_index' is always false [-Wtautological-constant-out-of-range-compare] if (srcBuffer == -1) { ~~~~~~~~~ ^ ~~ Replace -1 with an enum value to fix this. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo.h')
0 files changed, 0 insertions, 0 deletions