mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[client] egl: check for EGLImage creation failure
This commit is contained in:
parent
2c2008c981
commit
678ba0f484
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user