summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.c
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2015-11-26 10:32:57 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2015-11-28 17:24:34 -0500
commit0396eaaf80c5d7955d7926c4e448f006c7682d2e (patch)
tree7fda86c2c4d25e807383e12c2f23c3d63a341d2f /src/mesa/main/readpix.c
parent9e5e702cfb380af461062c96d974027da8d5f17a (diff)
downloadexternal_mesa3d-0396eaaf80c5d7955d7926c4e448f006c7682d2e.zip
external_mesa3d-0396eaaf80c5d7955d7926c4e448f006c7682d2e.tar.gz
external_mesa3d-0396eaaf80c5d7955d7926c4e448f006c7682d2e.tar.bz2
mesa: support GL_RED/GL_RG in ES2 contexts when driver support exists
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93126 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Eduardo Lima Mitev <elima@igalia.com> Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/mesa/main/readpix.c')
-rw-r--r--src/mesa/main/readpix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index 81bb912..8cdc9fe 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -1043,7 +1043,7 @@ _mesa_ReadnPixelsARB( GLint x, GLint y, GLsizei width, GLsizei height,
_mesa_get_color_read_type(ctx) == type) {
err = GL_NO_ERROR;
} else if (ctx->Version < 30) {
- err = _mesa_es_error_check_format_and_type(format, type, 2);
+ err = _mesa_es_error_check_format_and_type(ctx, format, type, 2);
if (err == GL_NO_ERROR) {
if (type == GL_FLOAT || type == GL_HALF_FLOAT_OES) {
err = GL_INVALID_OPERATION;