mesa/main: Add GL_IMAGE_FORMAT_COMPATIBILITY_TYPE to glGetTexParameterfv
authorMarta Lofstedt <marta.lofstedt@intel.com>
Wed, 12 Aug 2015 09:57:39 +0000 (11:57 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 19 Aug 2015 10:32:30 +0000 (13:32 +0300)
According to Open GL ES 3.1 specification, section 8.10.2
GL_IMAGE_FORMAT_COMPATIBILITY_TYPE should be supported by
glGetTexParameterfv.

Signed-off-by: Marta Lofstedt <marta.lofstedt@linux.intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/main/texparam.c

index 5500eed..16739f1 100644 (file)
@@ -1908,6 +1908,12 @@ get_tex_parameterfv(struct gl_context *ctx,
          *params = (GLfloat) obj->Sampler.sRGBDecode;
          break;
 
+      case GL_IMAGE_FORMAT_COMPATIBILITY_TYPE:
+         if (!ctx->Extensions.ARB_shader_image_load_store)
+            goto invalid_pname;
+         *params = (GLfloat) obj->ImageFormatCompatibilityType;
+         break;
+
       default:
          goto invalid_pname;
    }