summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/points.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2012-07-27 17:40:34 -0700
committerIan Romanick <ian.d.romanick@intel.com>2012-08-29 15:09:36 -0700
commitf778174ea1e431a7113f12c12beb4aba9e825a9f (patch)
tree7d31660e786f8cab40d56714828d19826302b746 /src/mesa/main/points.c
parent25ffb8689350bc7bb58a564bb1c5fc3ba62cb1df (diff)
downloadexternal_mesa3d-f778174ea1e431a7113f12c12beb4aba9e825a9f.zip
external_mesa3d-f778174ea1e431a7113f12c12beb4aba9e825a9f.tar.gz
external_mesa3d-f778174ea1e431a7113f12c12beb4aba9e825a9f.tar.bz2
mesa: Require OpenGL 2.0 for GL_POINT_SPRITE_COORD_ORIGIN
The comment in the code even says this is the right thing to do. 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.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c
index cb6ac39..eeb1b44 100644
--- a/src/mesa/main/points.c
+++ b/src/mesa/main/points.c
@@ -190,12 +190,11 @@ _mesa_PointParameterfv( GLenum pname, const GLfloat *params)
}
break;
case GL_POINT_SPRITE_COORD_ORIGIN:
- /* This is not completely correct. GL_POINT_SPRITE_COORD_ORIGIN was
- * added to point sprites when the extension was merged into OpenGL
- * 2.0. It is expected that an implementation supporting OpenGL 1.4
- * and GL_ARB_point_sprite will generate an error here.
+ /* GL_POINT_SPRITE_COORD_ORIGIN was added to point sprites when the
+ * extension was merged into OpenGL 2.0.
*/
- if (ctx->Extensions.ARB_point_sprite) {
+ if ((ctx->API == API_OPENGL && ctx->Version >= 20)
+ || ctx->API == API_OPENGL_CORE) {
GLenum value = (GLenum) params[0];
if (value != GL_LOWER_LEFT && value != GL_UPPER_LEFT) {
_mesa_error(ctx, GL_INVALID_VALUE,