mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 22:00:37 +02:00
glsl: fix gl_ViewID_OVR type to uint
the spec defines this as a uint, and having it as an int breaks anyone trying to actually use it cc: mesa-stable Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37766>
This commit is contained in:
parent
390b5e6150
commit
8f0ac427b3
1 changed files with 1 additions and 1 deletions
|
|
@ -1135,7 +1135,7 @@ builtin_variable_generator::generate_special_vars()
|
|||
add_system_value(SYSTEM_VALUE_SUBGROUP_LT_MASK, uvec4_t, "gl_SubgroupLtMask");
|
||||
}
|
||||
if (state->is_version(130, 300) && state->OVR_multiview_enable) {
|
||||
add_system_value(SYSTEM_VALUE_VIEW_INDEX, int_t, GLSL_PRECISION_MEDIUM,
|
||||
add_system_value(SYSTEM_VALUE_VIEW_INDEX, uint_t, GLSL_PRECISION_MEDIUM,
|
||||
"gl_ViewID_OVR");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue