summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_glview.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/elementary/src/lib/elm_glview.c')
-rw-r--r--legacy/elementary/src/lib/elm_glview.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/elementary/src/lib/elm_glview.c b/legacy/elementary/src/lib/elm_glview.c
index 96dbd6a550..82773e3f88 100644
--- a/legacy/elementary/src/lib/elm_glview.c
+++ b/legacy/elementary/src/lib/elm_glview.c
@@ -219,7 +219,7 @@ elm_glview_add(Evas_Object *parent)
219 Evas_Object *obj; 219 Evas_Object *obj;
220 Evas *e; 220 Evas *e;
221 Widget_Data *wd; 221 Widget_Data *wd;
222 Evas_GL_Config cfg = { EVAS_GL_RGB_8, 222 Evas_GL_Config cfg = { EVAS_GL_RGB_888,
223 EVAS_GL_DEPTH_NONE, 223 EVAS_GL_DEPTH_NONE,
224 EVAS_GL_STENCIL_NONE }; 224 EVAS_GL_STENCIL_NONE };
225 225
@@ -295,14 +295,14 @@ elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode)
295{ 295{
296 ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; 296 ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
297 Widget_Data *wd = elm_widget_data_get(obj); 297 Widget_Data *wd = elm_widget_data_get(obj);
298 Evas_GL_Config cfg = { EVAS_GL_RGBA_8, 298 Evas_GL_Config cfg = { EVAS_GL_RGBA_8888,
299 EVAS_GL_DEPTH_NONE, 299 EVAS_GL_DEPTH_NONE,
300 EVAS_GL_STENCIL_NONE }; 300 EVAS_GL_STENCIL_NONE };
301 if (!wd) return EINA_FALSE; 301 if (!wd) return EINA_FALSE;
302 302
303 // Set the configs 303 // Set the configs
304 if (mode & ELM_GLVIEW_ALPHA) 304 if (mode & ELM_GLVIEW_ALPHA)
305 cfg.color_format = EVAS_GL_RGBA_8; 305 cfg.color_format = EVAS_GL_RGBA_8888;
306 306
307 if (mode & ELM_GLVIEW_DEPTH) 307 if (mode & ELM_GLVIEW_DEPTH)
308 cfg.depth_bits = EVAS_GL_DEPTH_BIT_24; 308 cfg.depth_bits = EVAS_GL_DEPTH_BIT_24;