Revert "mesa: add GL_HALF_FLOAT as supported type to readpixels"
authorTapani Pälli <tapani.palli@intel.com>
Tue, 3 Apr 2018 05:43:18 +0000 (08:43 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 3 Apr 2018 05:43:30 +0000 (08:43 +0300)
This reverts commit 41cf30b8bc55fdf36adac3311002dc32b6715949.

Commit caused regressions with KHR-GLES3.packed_pixels.* tests.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Suggested-by: Eric Anholt <eric@anholt.net>
src/mesa/main/readpix.c

index 4407f13289e2e21486d8a4fd15fb8b688aeeb092..6ce340ddf9bbc8442aa515f669c60c96a7182868 100644 (file)
@@ -920,8 +920,6 @@ read_pixels_es3_error_check(GLenum format, GLenum type,
    case GL_RGBA:
       if (type == GL_FLOAT && data_type == GL_FLOAT)
          return GL_NO_ERROR; /* EXT_color_buffer_float */
-      if (type == GL_HALF_FLOAT && data_type == GL_FLOAT)
-         return GL_NO_ERROR;
       if (type == GL_UNSIGNED_BYTE && data_type == GL_UNSIGNED_NORMALIZED)
          return GL_NO_ERROR;
       if (internalFormat == GL_RGB10_A2 &&