mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
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
This commit is contained in:
parent
b0b8fa4885
commit
1b3f47fd36
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue