From: Xiong, James Date: Fri, 27 Apr 2018 15:34:47 +0000 (-0700) Subject: main: fail texture_storage() call if the size is not okay X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ab266dc1ba10ec13601e3bdb5b949e610eca5de;p=mesa.git main: fail texture_storage() call if the size is not okay Signed-off-by: Xiong, James Reviewed-by: Nicolai Hähnle --- diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index 44edba33235..9cb8b900651 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; } }