evas-gl-x11: Check return value of glXMakeContextCurrent

Summary: Fix Coverity CID1249651 (unchecked return value)

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-10-29 10:28:50 -04:00
parent 2e4197f695
commit b1bf718f1b
1 changed files with 5 additions and 1 deletions

View File

@ -475,7 +475,11 @@ eng_window_free(Outbuf *gw)
_evas_gl_x11_rgba_vi = NULL;
}
#else
__glXMakeContextCurrent(gw->disp, 0, gw->context);
if (!__glXMakeContextCurrent(gw->disp, 0, gw->context))
{
ERR("glXMakeContextCurrent() failed!");
glsym_evas_gl_common_error_set(data, EVAS_GL_BAD_DISPLAY);
}
glXDestroyWindow(gw->disp, gw->glxwin);
if (ref == 0)
{