From 0ab266dc1ba10ec13601e3bdb5b949e610eca5de Mon Sep 17 00:00:00 2001 From: "Xiong, James" Date: Fri, 27 Apr 2018 08:34:47 -0700 Subject: [PATCH] main: fail texture_storage() call if the size is not okay MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Xiong, James Reviewed-by: Nicolai Hähnle --- 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 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; } } -- 2.30.2