summaryrefslogtreecommitdiff
path: root/ir_variable.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-07 16:09:47 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-07 16:49:25 -0700
commit1b3f47fd363d74b1378f26ca0082a75db518aa1f (patch)
tree3effa1287acad4159aa03bd769188308bda251cd /ir_variable.cpp
parentb0b8fa48853cabaf493f68403dcdd29e081113a7 (diff)
Call glsl_type::get_instance correctly: the number of rows must be at least 1
This causes the following tests to pass: shaders/glsl-tex-mvp.vert
Diffstat (limited to 'ir_variable.cpp')
-rw-r--r--ir_variable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir_variable.cpp b/ir_variable.cpp
index 29f3fc5a63..41359b5616 100644
--- a/ir_variable.cpp
+++ b/ir_variable.cpp
@@ -120,7 +120,7 @@ generate_110_vs_variables(exec_list *instructions,
* FINISHME: at least 2, so hard-code 2 for now.
*/
const glsl_type *const vec4_type =
- glsl_type::get_instance(GLSL_TYPE_FLOAT, 4, 0);
+ glsl_type::get_instance(GLSL_TYPE_FLOAT, 4, 1);
const glsl_type *const vec4_array_type =
glsl_type::get_array_instance(vec4_type, 2);
@@ -204,7 +204,7 @@ generate_110_fs_variables(exec_list *instructions,
* FINISHME: at least 2, so hard-code 2 for now.
*/
const glsl_type *const vec4_type =
- glsl_type::get_instance(GLSL_TYPE_FLOAT, 4, 0);
+ glsl_type::get_instance(GLSL_TYPE_FLOAT, 4, 1);
const glsl_type *const vec4_array_type =
glsl_type::get_array_instance(vec4_type, 2);