gl-renderer: bugfix
authorjh13.son <jh13.son@samsung.com>
Wed, 27 May 2015 05:09:41 +0000 (14:09 +0900)
committerTaekyun Kim <tkq.kim@samsung.com>
Fri, 19 Jun 2015 09:06:41 +0000 (18:06 +0900)
Change-Id: Idb11798b139ce97eb925df67f173757bccc2380b

src/gl-renderer.c

index bd500e6..5e09f47 100644 (file)
@@ -783,13 +783,13 @@ error:
 static EGLenum
 platform_string_to_egl(const char *str)
 {
-    if (strcmp(str, "gbm"))
+    if (!strcmp(str, "gbm"))
         return EGL_PLATFORM_GBM_KHR;
 
-    if (strcmp(str, "wayland"))
+    if (!strcmp(str, "wayland"))
         return EGL_PLATFORM_WAYLAND_KHR;
 
-    if (strcmp(str, "x11"))
+    if (!strcmp(str, "x11"))
         return EGL_PLATFORM_X11_KHR;
 
     return EGL_NONE;