mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
mesa/drivers: Add extra null check in blitframebuffer_texture()
If texObj == NULL here it mean there is already GL_INVALID_VALUE or GL_OUT_OF_MEMORY error set to context. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
19f1d137f8
commit
5c9056d37f
1 changed files with 3 additions and 0 deletions
|
|
@ -430,6 +430,9 @@ blitframebuffer_texture(struct gl_context *ctx,
|
|||
srcLevel = 0;
|
||||
target = meta_temp_texture->Target;
|
||||
texObj = _mesa_lookup_texture(ctx, meta_temp_texture->TexObj);
|
||||
if (texObj == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
_mesa_meta_setup_copypix_texture(ctx, meta_temp_texture,
|
||||
srcX0, srcY0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue