diff options
author | Tom Hacohen <tom@stosb.com> | 2015-07-07 13:28:53 +0100 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2015-07-07 13:28:53 +0100 |
commit | 9183ba954671d21c0ff80451c138c8200a3b4e86 (patch) | |
tree | 1c9ea6db2a7200041f8e8a4d0729c542c00c0c3b | |
parent | 10f599bd590a88c6fbc289b2299496692c6f412d (diff) | |
download | efl-9183ba954671d21c0ff80451c138c8200a3b4e86.tar.gz |
Evas gl core: Move variables to the correct ifdef branch.
These variables were not really used in the #else branch of the ifdef.
This moves them to the correct place removing the unused variables issues.
-rw-r--r-- | src/modules/evas/engines/gl_common/evas_gl_core.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c b/src/modules/evas/engines/gl_common/evas_gl_core.c index 354a26603c..7ebee74ae4 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_core.c +++ b/src/modules/evas/engines/gl_common/evas_gl_core.c @@ -860,10 +860,6 @@ _surface_cap_init(void *eng_data) static int _context_ext_check(EVGL_Context *ctx) { - int fbo_supported = 0; - int egl_image_supported = 0; - int texture_image_supported = 0; - if (!ctx) return 0; @@ -871,6 +867,10 @@ _context_ext_check(EVGL_Context *ctx) return 1; #ifdef GL_GLES + int fbo_supported = 0; + int egl_image_supported = 0; + int texture_image_supported = 0; + switch (ctx->version) { case EVAS_GL_GLES_1_X: @@ -895,10 +895,6 @@ _context_ext_check(EVGL_Context *ctx) else ctx->pixmap_image_supported = 1; } -#else - fbo_supported = 1; - egl_image_supported = 0; - texture_image_supported = 0; #endif ctx->extension_checked = 1; |