projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d7696f
)
mesa/formatquery: Add support for READ_PIXELS query
author
Eduardo Lima Mitev
<elima@igalia.com>
Tue, 22 Dec 2015 17:20:57 +0000
(18:20 +0100)
committer
Eduardo Lima Mitev
<elima@igalia.com>
Thu, 3 Mar 2016 14:14:07 +0000
(15:14 +0100)
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 <airlied@redhat.com>
src/mesa/main/formatquery.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/formatquery.c
b/src/mesa/main/formatquery.c
index cd32c03447741e87eb21f339c8934a6aa9d98eeb..28d82a206eb4fa3fd5995864e84f47208b70f474 100644
(file)
--- 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: