summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-11-14 11:22:59 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-11-14 11:32:56 +0900
commitf3a53acbf0f28471394de68de9161c5edb459079 (patch)
tree88120016401760bc2e2d8ef7fb7b19dcffc85d28
parentcd8d68cda450c8b377f51710baa1328c0f448ae8 (diff)
Evas GL: Fix bug in evgl_eng_pbuffer_surface_create (EGL)
Thanks Henry Song for the report. @fix
-rw-r--r--src/modules/evas/engines/gl_x11/evas_engine.c4
1 files changed, 3 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 31b5fa5abe..1447c53e7d 100644
--- a/src/modules/evas/engines/gl_x11/evas_engine.c
+++ b/src/modules/evas/engines/gl_x11/evas_engine.c
@@ -646,6 +646,7 @@ evgl_eng_pbuffer_surface_create(void *data, EVGL_Surface *sfc,
646 WRN("This PBuffer implementation does not support extra attributes yet"); 646 WRN("This PBuffer implementation does not support extra attributes yet");
647 647
648#ifdef GL_GLES 648#ifdef GL_GLES
649 Evas_Engine_GL_Context *evasglctx;
649 int config_attrs[20]; 650 int config_attrs[20];
650 int surface_attrs[20]; 651 int surface_attrs[20];
651 EGLSurface egl_sfc; 652 EGLSurface egl_sfc;
@@ -655,7 +656,8 @@ evgl_eng_pbuffer_surface_create(void *data, EVGL_Surface *sfc,
655 EGLContext ctx; 656 EGLContext ctx;
656 657
657 disp = re->window_egl_display_get(re->software.ob); 658 disp = re->window_egl_display_get(re->software.ob);
658 ctx = re->window_gl_context_get(re->software.ob); 659 evasglctx = re->window_gl_context_get(re->software.ob);
660 ctx = evasglctx->eglctxt;
659 661
660#if 0 662#if 0
661 // Choose framebuffer configuration 663 // Choose framebuffer configuration