Skip to content
Snippets Groups Projects
Commit 34528a34 authored by Vinson Lee's avatar Vinson Lee
Browse files

mesa: Fix array out-of-bounds access by _mesa_Lightf.

parent 34888307
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,10 @@ _mesa_light(GLcontext *ctx, GLuint lnum, GLenum pname, const GLfloat *params)
void GLAPIENTRY
_mesa_Lightf( GLenum light, GLenum pname, GLfloat param )
{
_mesa_Lightfv( light, pname, &param );
GLfloat fparam[4];
fparam[0] = param;
fparam[1] = fparam[2] = fparam[3] = 0.0F;
_mesa_Lightfv( light, pname, fparam );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment