Commit 236d2dbc authored by Brian Paul's avatar Brian Paul
Browse files

minor error check tweaks for NV_light_max_exponent

parent 80f669b9
......@@ -3028,11 +3028,11 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params )
/* GL_NV_light_max_exponent */
case GL_MAX_SHININESS_NV:
CHECK_EXTENSION_B(NV_light_max_exponent, pname);
CHECK_EXTENSION_D(NV_light_max_exponent, pname);
*params = (GLdouble) ctx->Const.MaxShininess;
break;
case GL_MAX_SPOT_EXPONENT_NV:
CHECK_EXTENSION_B(NV_light_max_exponent, pname);
CHECK_EXTENSION_D(NV_light_max_exponent, pname);
*params = (GLdouble) ctx->Const.MaxSpotExponent;
break;
......@@ -4512,11 +4512,11 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
/* GL_NV_light_max_exponent */
case GL_MAX_SHININESS_NV:
CHECK_EXTENSION_B(NV_light_max_exponent, pname);
CHECK_EXTENSION_F(NV_light_max_exponent, pname);
*params = ctx->Const.MaxShininess;
break;
case GL_MAX_SPOT_EXPONENT_NV:
CHECK_EXTENSION_B(NV_light_max_exponent, pname);
CHECK_EXTENSION_F(NV_light_max_exponent, pname);
*params = ctx->Const.MaxSpotExponent;
break;
......@@ -6034,11 +6034,11 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
/* GL_NV_light_max_exponent */
case GL_MAX_SHININESS_NV:
CHECK_EXTENSION_B(NV_light_max_exponent, pname);
CHECK_EXTENSION_I(NV_light_max_exponent, pname);
*params = (GLint) ctx->Const.MaxShininess;
break;
case GL_MAX_SPOT_EXPONENT_NV:
CHECK_EXTENSION_B(NV_light_max_exponent, pname);
CHECK_EXTENSION_I(NV_light_max_exponent, pname);
*params = (GLint) ctx->Const.MaxSpotExponent;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment