mesa: fix error handling for glPixelZoom
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 19 Sep 2011 07:03:03 +0000 (15:03 +0800)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Sep 2011 14:11:52 +0000 (08:11 -0600)
commit7a9a8bbabd27b8475b541cbdb2b43f75e23dbf4c
tree208c26e7886ad06293c750970d9914dab5bb7340
parent6a9880224368a016dfb1a9f5b5dfa9284a7dc6cf
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>
src/mesa/main/pixel.c