mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
remove uintptr_t cast
This commit is contained in:
parent
6b25193b92
commit
f285f0d8f6
1 changed files with 1 additions and 1 deletions
|
|
@ -2165,7 +2165,7 @@ _mesa_validate_pbo_compressed_teximage(GLcontext *ctx,
|
|||
return pixels;
|
||||
}
|
||||
if ((const GLubyte *) pixels + imageSize >
|
||||
(const GLubyte *)(uintptr_t) packing->BufferObj->Size) {
|
||||
((const GLubyte *) 0) + packing->BufferObj->Size) {
|
||||
/* out of bounds read! */
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, funcName, "(invalid PBO access");
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue