mesa: glGetTexParameter support for GL_ARB_texture_storage
This commit is contained in:
@@ -1204,6 +1204,12 @@ _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params )
|
||||
*params = (GLfloat) obj->Sampler.CubeMapSeamless;
|
||||
break;
|
||||
|
||||
case GL_TEXTURE_IMMUTABLE_FORMAT:
|
||||
if (!ctx->Extensions.ARB_texture_storage)
|
||||
goto invalid_pname;
|
||||
*params = (GLfloat) obj->Immutable;
|
||||
break;
|
||||
|
||||
default:
|
||||
goto invalid_pname;
|
||||
}
|
||||
@@ -1338,6 +1344,12 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params )
|
||||
*params = (GLint) obj->Sampler.CubeMapSeamless;
|
||||
break;
|
||||
|
||||
case GL_TEXTURE_IMMUTABLE_FORMAT:
|
||||
if (!ctx->Extensions.ARB_texture_storage)
|
||||
goto invalid_pname;
|
||||
*params = (GLint) obj->Immutable;
|
||||
break;
|
||||
|
||||
default:
|
||||
goto invalid_pname;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user