[client] egl: check for EGLImage creation failure

This commit is contained in:
Geoffrey McRae 2020-12-31 12:58:40 +11:00
parent 2c2008c981
commit 678ba0f484

View File

@ -383,6 +383,12 @@ bool egl_texture_update_from_dma(EGL_Texture * texture, const FrameBuffer * fram
attribs attribs
); );
if (image == EGL_NO_IMAGE)
{
DEBUG_ERROR("failed to create ELGImage for DMA transfer");
return false;
}
/* bind the texture and initiate the transfer */ /* bind the texture and initiate the transfer */
glBindTexture(GL_TEXTURE_2D, texture->tex[t].t); glBindTexture(GL_TEXTURE_2D, texture->tex[t].t);
glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, image); glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, image);