mesa/es: Validate glGetRenderbufferParameter pname in Mesa code rather than the ES wrapper
v2: Add proper core-profile and GLES3 filtering. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -1572,7 +1572,8 @@ _mesa_GetRenderbufferParameterivEXT(GLenum target, GLenum pname, GLint *params)
|
||||
*params = get_component_bits(pname, rb->_BaseFormat, rb->Format);
|
||||
break;
|
||||
case GL_RENDERBUFFER_SAMPLES:
|
||||
if (ctx->Extensions.ARB_framebuffer_object) {
|
||||
if ((_mesa_is_desktop_gl(ctx) && ctx->Extensions.ARB_framebuffer_object)
|
||||
|| _mesa_is_gles3(ctx)) {
|
||||
*params = rb->NumSamples;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user