diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/uniform_query.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 142ad1fbdc0..afe9a08c184 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -1028,7 +1028,7 @@ _mesa_get_uniform_location(struct gl_context *ctx, * array_elements is zero and offset >= 0. */ if (array_lookup - && offset >= shProg->UniformStorage[location].array_elements) { + && offset >= (long) shProg->UniformStorage[location].array_elements) { return GL_INVALID_INDEX; } |