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:
parent
08c1444c95
commit
0ab266dc1b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue