projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dddf59
)
mesa: silence MSVC signed/unsigned warning in texgetmage.c
author
Brian Paul
<brianp@vmware.com>
Sun, 4 Nov 2012 23:43:44 +0000
(16:43 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 6 Nov 2012 14:42:37 +0000
(07:42 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/texgetimage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texgetimage.c
b/src/mesa/main/texgetimage.c
index a3720699df5db235642b58cf40862b780f338626..554c68b718690cde86d36f7689f79732c5a82545 100644
(file)
--- a/
src/mesa/main/texgetimage.c
+++ b/
src/mesa/main/texgetimage.c
@@
-892,7
+892,7
@@
getcompressedteximage_error_check(struct gl_context *ctx, GLenum target,
if (!_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
/* do bounds checking on writing to client memory */
- if (clientMemSize < compressedSize) {
+ if (clientMemSize <
(GLsizei)
compressedSize) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glGetnCompressedTexImageARB(out of bounds access:"
" bufSize (%d) is too small)", clientMemSize);