Module: wine Branch: master Commit: afb06a11842f38313e2a7a6f85db7ff9013d75f1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=afb06a11842f38313e2a7a6f85...
Author: Stefan Dösinger stefan@codeweavers.com Date: Sun Nov 18 17:28:32 2007 +0100
wined3d: Bool constants aren't vectors.
---
dlls/wined3d/glsl_shader.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 1cc3ec8..d9e525b 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -293,7 +293,7 @@ static void shader_glsl_load_constantsB( for (i=0; i<max_constants; ++i) { if (NULL == constants_set || constants_set[i]) {
- TRACE_(d3d_constants)("Loading constants %i: %i;\n", i, constants[i*4]); + TRACE_(d3d_constants)("Loading constants %i: %i;\n", i, constants[i]);
/* TODO: Benchmark and see if it would be beneficial to store the * locations of the constants to avoid looking up each time */ @@ -301,7 +301,7 @@ static void shader_glsl_load_constantsB( tmp_loc = GL_EXTCALL(glGetUniformLocationARB(programId, tmp_name)); if (tmp_loc != -1) { /* We found this uniform name in the program - go ahead and send the data */ - GL_EXTCALL(glUniform1ivARB(tmp_loc, 1, &constants[i*4])); + GL_EXTCALL(glUniform1ivARB(tmp_loc, 1, &constants[i])); checkGLcall("glUniform1ivARB"); } }