summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_api.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_api.c b/src/modules/evas/engines/gl_common/evas_gl_api.c
index 6007b7c4f8..e8254e3f15 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_api.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_api.c
@@ -478,7 +478,7 @@ _evgl_glGetIntegerv(GLenum pname, GLint* params)
478 { 478 {
479 if (!params) 479 if (!params)
480 { 480 {
481 ERR("Inavlid Parameter"); 481 ERR("Invalid Parameter");
482 return; 482 return;
483 } 483 }
484 484
@@ -527,6 +527,19 @@ _evgl_glGetIntegerv(GLenum pname, GLint* params)
527 } 527 }
528 } 528 }
529 } 529 }
530 else
531 {
532 if (pname == GL_FRAMEBUFFER_BINDING)
533 {
534 rsc = _evgl_tls_resource_get();
535 ctx = rsc ? rsc->current_ctx : NULL;
536 if (ctx)
537 {
538 *params = ctx->current_fbo;
539 return;
540 }
541 }
542 }
530 543
531 glGetIntegerv(pname, params); 544 glGetIntegerv(pname, params);
532} 545}