mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-02-20 18:31:22 +00:00
[client] egl: check for EGLImage creation failure
This commit is contained in:
parent
2c2008c981
commit
678ba0f484
1 changed files with 6 additions and 0 deletions
|
@ -383,6 +383,12 @@ bool egl_texture_update_from_dma(EGL_Texture * texture, const FrameBuffer * fram
|
|||
attribs
|
||||
);
|
||||
|
||||
if (image == EGL_NO_IMAGE)
|
||||
{
|
||||
DEBUG_ERROR("failed to create ELGImage for DMA transfer");
|
||||
return false;
|
||||
}
|
||||
|
||||
/* bind the texture and initiate the transfer */
|
||||
glBindTexture(GL_TEXTURE_2D, texture->tex[t].t);
|
||||
glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, image);
|
||||
|
|
Loading…
Add table
Reference in a new issue