evas/gl_drm: Change EGL_WAYLAND definitions to EVAS_GL_WAYLAND. 32/48532/2
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Tue, 22 Sep 2015 11:53:43 +0000 (20:53 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Tue, 22 Sep 2015 13:08:39 +0000 (22:08 +0900)
Change-Id: Ib6407db9269b83334b6f84f8e99bcdeac6c8f7e7

src/modules/evas/engines/gl_drm/evas_engine.c

index 14c8a2e..cdd5fdd 100644 (file)
@@ -1103,7 +1103,7 @@ eng_image_native_set(void *data, void *image, void *native)
                   EGLint attribs[3];
                   int format, yinvert = 1;
 
-                  glsym_eglQueryWaylandBufferWL(ob->egl_disp, wl_buf, EGL_TEXTURE_FORMAT, &format);
+                  glsym_eglQueryWaylandBufferWL(ob->egl_disp, wl_buf, EVAS_GL_TEXTURE_FORMAT, &format);
                   if ((format != EGL_TEXTURE_RGB) && (format != EGL_TEXTURE_RGBA))
                     {
                        ERR("eglQueryWaylandBufferWL() %d format is not supported ", format);
@@ -1112,19 +1112,19 @@ eng_image_native_set(void *data, void *image, void *native)
                        return NULL;
                     }
 
-                  attribs[0] = EGL_WAYLAND_PLANE_WL;
+                  attribs[0] = EVAS_GL_WAYLAND_PLANE_WL;
                   attribs[1] = 0; //if plane is 1 then 0, if plane is 2 then 1
-                  attribs[2] = EGL_NONE;
+                  attribs[2] = EVAS_GL_NONE;
 
                   memcpy(&(n->ns), ns, sizeof(Evas_Native_Surface));
-                  glsym_eglQueryWaylandBufferWL(ob->egl_disp, wl_buf, EGL_WAYLAND_Y_INVERTED_WL, &yinvert);
+                  glsym_eglQueryWaylandBufferWL(ob->egl_disp, wl_buf, EVAS_GL_WAYLAND_Y_INVERTED_WL, &yinvert);
                   eina_hash_add(ob->gl_context->shared->native_wl_hash, &wlid, img);
 
                   n->wl_buf = wl_buf;
                   if (glsym_eglCreateImage)
                     n->egl_surface = glsym_eglCreateImage(ob->egl_disp,
                                                           NULL,
-                                                          EGL_WAYLAND_BUFFER_WL,
+                                                          EVAS_GL_WAYLAND_BUFFER_WL,
                                                           wl_buf,
                                                           attribs);
                   else