mesa/es: NULL check in EGLImageTargetTexture2DOES
check that pointer passed is valid and return error if not. Note: This is a candidate for the stable branches. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
331967c773
commit
3cdb548bfb
|
@ -3187,6 +3187,12 @@ _mesa_EGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!image) {
|
||||||
|
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||||
|
"glEGLImageTargetTexture2D(image=%p)", image);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->NewState & _NEW_PIXEL)
|
if (ctx->NewState & _NEW_PIXEL)
|
||||||
_mesa_update_state(ctx);
|
_mesa_update_state(ctx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue