diff options
author | Brian Paul <[email protected]> | 2009-12-11 09:22:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-11 09:22:00 -0700 |
commit | b605f4ff11c894500f2d0273c5d4653ff413448d (patch) | |
tree | 144a2202677b29020bfb0477d145a985cae3c29f /src/mesa/main/texgen.c | |
parent | da3bc492d2438ac915e720c17b54d0d12ffd8a97 (diff) | |
parent | 5076a4f53a2f34cc9116b45951037f639885c7a1 (diff) |
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
Diffstat (limited to 'src/mesa/main/texgen.c')
-rw-r--r-- | src/mesa/main/texgen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/texgen.c b/src/mesa/main/texgen.c index 5abb1ff0ab6..be4e03bc56c 100644 --- a/src/mesa/main/texgen.c +++ b/src/mesa/main/texgen.c @@ -186,8 +186,10 @@ _mesa_TexGeniv(GLenum coord, GLenum pname, const GLint *params ) static void GLAPIENTRY _mesa_TexGend(GLenum coord, GLenum pname, GLdouble param ) { - GLfloat p = (GLfloat) param; - _mesa_TexGenfv( coord, pname, &p ); + GLfloat p[4]; + p[0] = (GLfloat) param; + p[1] = p[2] = p[3] = 0.0F; + _mesa_TexGenfv( coord, pname, p ); } |