summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/points.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2012-07-27 17:43:22 -0700
committerIan Romanick <ian.d.romanick@intel.com>2012-08-29 15:09:36 -0700
commit917f68071bcba705970f474fae2cb56cfffa20f5 (patch)
treeb3156213325b59f99d081c7a2329696f5cb420aa /src/mesa/main/points.c
parentf778174ea1e431a7113f12c12beb4aba9e825a9f (diff)
downloadexternal_mesa3d-917f68071bcba705970f474fae2cb56cfffa20f5.zip
external_mesa3d-917f68071bcba705970f474fae2cb56cfffa20f5.tar.gz
external_mesa3d-917f68071bcba705970f474fae2cb56cfffa20f5.tar.bz2
mesa/es: Validate glPointParameter pname in Mesa code rather than the ES wrapper
v2: Add proper core-profile filtering. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/main/points.c')
-rw-r--r--src/mesa/main/points.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c
index eeb1b44..d66af2f 100644
--- a/src/mesa/main/points.c
+++ b/src/mesa/main/points.c
@@ -171,7 +171,7 @@ _mesa_PointParameterfv( GLenum pname, const GLfloat *params)
* differ. In ARB_point_sprite the POINT_SPRITE_R_MODE is
* always ZERO. NV_point_sprite adds the S and R modes.
*/
- if (ctx->Extensions.NV_point_sprite) {
+ if (_mesa_is_desktop_gl(ctx) && ctx->Extensions.NV_point_sprite) {
GLenum value = (GLenum) params[0];
if (value != GL_ZERO && value != GL_S && value != GL_R) {
_mesa_error(ctx, GL_INVALID_VALUE,