Evas GL: Fix logic in debug check
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 5 Mar 2015 08:20:57 +0000 (17:20 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 16 Mar 2015 06:56:48 +0000 (15:56 +0900)
src/modules/evas/engines/gl_common/evas_gl_api.c

index ef9f132..fa28846 100644 (file)
@@ -24,7 +24,7 @@ void _make_current_check(const char* api)
 
    if (!ctx)
      CRI("\e[1;33m%s\e[m: Current Context NOT SET: GL Call Should NOT Be Called without MakeCurrent!!!", api);
-   else if ((ctx->version != EVAS_GL_GLES_2_X) || (ctx->version != EVAS_GL_GLES_3_X))
+   else if ((ctx->version != EVAS_GL_GLES_2_X) && (ctx->version != EVAS_GL_GLES_3_X))
      CRI("\e[1;33m%s\e[m: This API is being called with the wrong context (invalid version).", api);
 }