Mesa (master): main: fail texture_storage() call if the size is not okay
Timothy Arceri
tarceri at kemper.freedesktop.org
Wed May 9 23:34:44 UTC 2018
Module: Mesa
Branch: master
Commit: 0ab266dc1ba10ec13601e3bdb5b949e610eca5de
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ab266dc1ba10ec13601e3bdb5b949e610eca5de
Author: Xiong, James <james.xiong at intel.com>
Date: Fri Apr 27 08:34:47 2018 -0700
main: fail texture_storage() call if the size is not okay
Signed-off-by: Xiong, James <james.xiong at intel.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/mesa/main/texstorage.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c
index 44edba3323..9cb8b90065 100644
--- a/src/mesa/main/texstorage.c
+++ b/src/mesa/main/texstorage.c
@@ -445,6 +445,7 @@ texture_storage(struct gl_context *ctx, GLuint dims,
_mesa_error(ctx, GL_OUT_OF_MEMORY,
"glTex%sStorage%uD(texture too large)",
suffix, dims);
+ return;
}
}
More information about the mesa-commit
mailing list