summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstorage.c
diff options
context:
space:
mode:
authorXiong, James <[email protected]>2018-04-27 08:34:47 -0700
committerTimothy Arceri <[email protected]>2018-05-10 09:34:31 +1000
commit0ab266dc1ba10ec13601e3bdb5b949e610eca5de (patch)
treee900506ec1e99f6e7578e6ca0e89f9260301deb5 /src/mesa/main/texstorage.c
parent08c1444c9582f8654f9c688b79230ba2acbc2027 (diff)
main: fail texture_storage() call if the size is not okay
Signed-off-by: Xiong, James <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/texstorage.c')
-rw-r--r--src/mesa/main/texstorage.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}