mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 03:00:23 +01:00
mesa: fix error handling for glPixelZoom
According the man page, GL_INVALID_OPERATION should generated if glPixelZoom is executed between the execution of glBegin and the corresponding execution of glEnd. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
6a98802243
commit
7a9a8bbabd
1 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ _mesa_PixelZoom( GLfloat xfactor, GLfloat yfactor )
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||
|
||||
if (ctx->Pixel.ZoomX == xfactor &&
|
||||
ctx->Pixel.ZoomY == yfactor)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue