jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=129ba38cc75e4553934b569959f1eae86e4b5577

commit 129ba38cc75e4553934b569959f1eae86e4b5577
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Nov 27 14:51:58 2014 +0900

    Evas GL: Return current framebuffer based on ctx information
    
    ctx->current_fbo should contain the visible FBO value, even
    if indirect rendering is used.
---
 src/modules/evas/engines/gl_common/evas_gl_api.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

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 6007b7c..e8254e3 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)
      {
         if (!params)
           {
-             ERR("Inavlid Parameter");
+             ERR("Invalid Parameter");
              return;
           }
 
@@ -527,6 +527,19 @@ _evgl_glGetIntegerv(GLenum pname, GLint* params)
                }
           }
      }
+   else
+     {
+        if (pname == GL_FRAMEBUFFER_BINDING)
+          {
+             rsc = _evgl_tls_resource_get();
+             ctx = rsc ? rsc->current_ctx : NULL;
+             if (ctx)
+               {
+                  *params = ctx->current_fbo;
+                  return;
+               }
+          }
+     }
 
    glGetIntegerv(pname, params);
 }

-- 


Reply via email to