aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.c
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2013-01-10 17:29:27 -0800
committerMatt Turner <[email protected]>2013-01-20 19:54:38 -0800
commit119002a648180ba1a20ed086adf2b1b306f81386 (patch)
treea30ccd4847aed6a02e22c591802f34b7b458b0f3 /src/mesa/main/readpix.c
parent227f58695ecff3e5c4fb1861f4e79cb2ae007b94 (diff)
extensions: enable EXT_color_buffer_float for ES3
[mattst88] v2: Enable only for ES3 per spec. [mattst88] v3: Use _mesa_is_gles3 since EXT_color_buffer_float is ES3-only. Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/main/readpix.c')
-rw-r--r--src/mesa/main/readpix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index cb4d02daf81..994e5895e73 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -694,6 +694,8 @@ read_pixels_es3_error_check(GLenum format, GLenum type,
switch (format) {
case GL_RGBA:
+ if (type == GL_FLOAT && data_type == GL_FLOAT)
+ return GL_NO_ERROR; /* EXT_color_buffer_float */
if (type == GL_UNSIGNED_BYTE && data_type == GL_UNSIGNED_NORMALIZED)
return GL_NO_ERROR;
if (internalFormat == GL_RGB10_A2 &&