[Mesa-stable] [PATCH] mesa: fix error handling in get_framebuffer_parameteriv

Rhys Perry pendingchaos02 at gmail.com
Mon May 7 11:56:54 UTC 2018


No, I don't know of any app or test that these changes fix.

Ian Romanick (a.k.a idr) noticed that it was checking whether the pname is
valid for a window system framebuffer before it was checking if the pname
itself was valid.

So passing an invalid pname would result in an GL_INVALID_OPERATION, not an
GL_INVALID_ENUM, in the case of a window system framebuffer being used.

This patch fixes that.


More information about the mesa-stable mailing list