From: Eduardo Lima Mitev Date: Tue, 22 Dec 2015 17:20:57 +0000 (+0100) Subject: mesa/formatquery: Add support for READ_PIXELS query X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09550c16a51e89dbf64b0864d3fb4ddb6accac52;p=mesa.git mesa/formatquery: Add support for READ_PIXELS query 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. Reviewed-by: Dave Airlie --- diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c index cd32c034477..28d82a206eb 100644 --- a/src/mesa/main/formatquery.c +++ b/src/mesa/main/formatquery.c @@ -1090,7 +1090,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: