[Mesa-dev] [RFC 57/63] mesa/formatquery: Add support for READ_PIXELS query

Eduardo Lima Mitev elima at igalia.com
Tue Jan 19 08:42:37 PST 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 8674af3..1b98b82 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -1086,7 +1086,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