mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
glsl2: Store the gl_type of the array's element type in the array.
Fixes glsl-fs-uniform-array-1, glsl-vs-uniform-array-1, and the -2 tests on software.
This commit is contained in:
parent
7b48843ecd
commit
288733f600
1 changed files with 5 additions and 0 deletions
|
|
@ -285,6 +285,11 @@ glsl_type::glsl_type(void *ctx, const glsl_type *array, unsigned length) :
|
|||
name(NULL), length(length)
|
||||
{
|
||||
this->fields.array = array;
|
||||
/* Inherit the gl type of the base. The GL type is used for
|
||||
* uniform/statevar handling in Mesa and the arrayness of the type
|
||||
* is represented by the size rather than the type.
|
||||
*/
|
||||
this->gl_type = array->gl_type;
|
||||
|
||||
/* Allow a maximum of 10 characters for the array size. This is enough
|
||||
* for 32-bits of ~0. The extra 3 are for the '[', ']', and terminating
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue