[Mesa-dev] [PATCH 58/65] mesa/formatquery: Add support for READ_PIXELS query

Eduardo Lima Mitev elima at igalia.com
Wed Feb 3 15:45:43 UTC 2016


This is supported since very early version of OpenGL, but we still call the
driver to give it the opportunity to report caveat or no support.
---
 src/mesa/main/formatquery.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index 342154d..ba43dfc 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -1082,7 +1082,8 @@ _mesa_GetInternalformativ(GLenum target, GLenum internalformat, GLenum pname,
       break;
 
    case GL_READ_PIXELS:
-      /* @TODO */
+      ctx->Driver.QueryInternalFormat(ctx, target, internalformat, pname,
+                                      buffer);
       break;
 
    case GL_READ_PIXELS_FORMAT:
-- 
2.5.3



More information about the mesa-dev mailing list