mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
fix glPointParameteriv bug 11754
This commit is contained in:
parent
756a7a4e4b
commit
3e3d392e1c
1 changed files with 8 additions and 3 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 7.0
|
||||
* Version: 7.0.1
|
||||
*
|
||||
* Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
|
||||
*
|
||||
|
|
@ -85,8 +85,13 @@ _mesa_PointParameteriNV( GLenum pname, GLint param )
|
|||
void GLAPIENTRY
|
||||
_mesa_PointParameterivNV( GLenum pname, const GLint *params )
|
||||
{
|
||||
const GLfloat value = (GLfloat) params[0];
|
||||
_mesa_PointParameterfvEXT(pname, &value);
|
||||
GLfloat p[3];
|
||||
p[0] = (GLfloat) params[0];
|
||||
if (pname == GL_DISTANCE_ATTENUATION_EXT) {
|
||||
p[1] = (GLfloat) params[1];
|
||||
p[2] = (GLfloat) params[2];
|
||||
}
|
||||
_mesa_PointParameterfvEXT(pname, p);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue