forked from enlightenment/efl
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:
parent
2e4197f695
commit
b1bf718f1b
|
@ -475,7 +475,11 @@ eng_window_free(Outbuf *gw)
|
||||||
_evas_gl_x11_rgba_vi = NULL;
|
_evas_gl_x11_rgba_vi = NULL;
|
||||||
}
|
}
|
||||||
#else
|
#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);
|
glXDestroyWindow(gw->disp, gw->glxwin);
|
||||||
if (ref == 0)
|
if (ref == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue