summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-11-29 12:07:33 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-11-29 12:07:33 +0900
commit8fcfae57d18510c2c283108a42d638e7513a9af8 (patch)
treead48dff45dd01291cd062abf1ef46221dc33d8e0
parentcc89a541de241f50c35b51485cf44e0ce82d6551 (diff)
evas - gl - fix warning for unused var in glx build
-rw-r--r--src/modules/evas/engines/gl_x11/evas_engine.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c
index 5a36125..0ed2018 100644
--- a/src/modules/evas/engines/gl_x11/evas_engine.c
+++ b/src/modules/evas/engines/gl_x11/evas_engine.c
@@ -866,12 +866,14 @@ evgl_eng_pbuffer_surface_destroy(void *data, void *surface)
866// be shared with Evas. 866// be shared with Evas.
867// FIXME: Avoid passing evgl_engine around like that. 867// FIXME: Avoid passing evgl_engine around like that.
868static void * 868static void *
869evgl_eng_gles1_surface_create(EVGL_Engine *evgl, void *data, 869evgl_eng_gles1_surface_create(EVGL_Engine *evgl EINA_UNUSED, void *data,
870 EVGL_Surface *evgl_sfc, 870 EVGL_Surface *evgl_sfc,
871 Evas_GL_Config *cfg, int w, int h) 871 Evas_GL_Config *cfg, int w, int h)
872{ 872{
873 Render_Engine *re = data; 873 Render_Engine *re = data;
874#ifdef GL_GLES
874 Eina_Bool alpha = EINA_FALSE; 875 Eina_Bool alpha = EINA_FALSE;
876#endif
875 int colordepth; 877 int colordepth;
876 Pixmap px; 878 Pixmap px;
877 879
@@ -891,7 +893,9 @@ evgl_eng_gles1_surface_create(EVGL_Engine *evgl, void *data,
891 /* Choose appropriate pixmap depth */ 893 /* Choose appropriate pixmap depth */
892 if (cfg->color_format == EVAS_GL_RGBA_8888) 894 if (cfg->color_format == EVAS_GL_RGBA_8888)
893 { 895 {
896#ifdef GL_GLES
894 alpha = EINA_TRUE; 897 alpha = EINA_TRUE;
898#endif
895 colordepth = 32; 899 colordepth = 32;
896 } 900 }
897 else if (cfg->color_format == EVAS_GL_RGB_888) 901 else if (cfg->color_format == EVAS_GL_RGB_888)