OSDN Git Service

dlist: fix save_SamplerParameteri
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 9 Jun 2013 21:17:16 +0000 (09:17 +1200)
committerVinson Lee <vlee@freedesktop.org>
Sun, 9 Jun 2013 21:00:40 +0000 (14:00 -0700)
This was building the temporary array to pass to
save_SamplerParameteriv, and then not passing it.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/mesa/main/dlist.c

index 8900c89..af2b468 100644 (file)
@@ -7027,7 +7027,7 @@ save_SamplerParameteri(GLuint sampler, GLenum pname, GLint param)
    GLint parray[4];
    parray[0] = param;
    parray[1] = parray[2] = parray[3] = 0;
-   save_SamplerParameteriv(sampler, pname, param);
+   save_SamplerParameteriv(sampler, pname, parray);
 }
 
 static void GLAPIENTRY