mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] egl: log glCheckFramebufferStatus error
This commit is contained in:
parent
bc34dc9e24
commit
9ddd260b22
@ -82,10 +82,11 @@ bool egl_framebufferSetup(EGL_Framebuffer * this, enum EGL_PixelFormat pixFmt,
|
|||||||
GL_TEXTURE_2D, tex, 0);
|
GL_TEXTURE_2D, tex, 0);
|
||||||
glDrawBuffers(1, &(GLenum){GL_COLOR_ATTACHMENT0});
|
glDrawBuffers(1, &(GLenum){GL_COLOR_ATTACHMENT0});
|
||||||
|
|
||||||
if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
|
GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
||||||
|
if (status != GL_FRAMEBUFFER_COMPLETE)
|
||||||
{
|
{
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||||
DEBUG_ERROR("Failed to setup the framebuffer");
|
DEBUG_ERROR("Failed to setup the framebuffer: 0x%x", status);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user