main: fail texture_storage() call if the size is not okay

Signed-off-by: Xiong, James <james.xiong@intel.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Xiong, James 2018-04-27 08:34:47 -07:00 committed by Timothy Arceri
parent 08c1444c95
commit 0ab266dc1b
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}