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>
This commit is contained in:
parent
25ffb86893
commit
f778174ea1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue