evas-gl-x11: Don't call gl_common_error_set if MakeContextCurrent fails
authorChris Michael <cp.michael@samsung.com>
Wed, 29 Oct 2014 16:07:48 +0000 (12:07 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 29 Oct 2014 16:07:48 +0000 (12:07 -0400)
Summary: glsym_evas_gl_common_error_set used here leads to an implicit
declaration in compiler warnings. Remove the call to that function and
just print out an error message. This is a cleanup function anyway.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/gl_x11/evas_x_main.c

index 9596b6a..1fe24e6 100644 (file)
@@ -476,10 +476,7 @@ eng_window_free(Outbuf *gw)
      }
 #else
    if (!__glXMakeContextCurrent(gw->disp, 0, gw->context))
-     {
-        ERR("glXMakeContextCurrent() failed!");
-        glsym_evas_gl_common_error_set(data, EVAS_GL_BAD_DISPLAY);
-     }
+     ERR("glXMakeContextCurrent() failed!");
    glXDestroyWindow(gw->disp, gw->glxwin);
    if (ref == 0)
      {