mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
glsl: use casts to silence warning
This commit is contained in:
parent
61efad6865
commit
7eb7d67d50
1 changed files with 1 additions and 1 deletions
|
|
@ -1248,7 +1248,7 @@ assign_attribute_or_color_locations(gl_shader_program *prog,
|
|||
*/
|
||||
|
||||
const int generic_base = (target_index == MESA_SHADER_VERTEX)
|
||||
? VERT_ATTRIB_GENERIC0 : FRAG_RESULT_DATA0;
|
||||
? (int) VERT_ATTRIB_GENERIC0 : (int) FRAG_RESULT_DATA0;
|
||||
|
||||
const enum ir_variable_mode direction =
|
||||
(target_index == MESA_SHADER_VERTEX) ? ir_var_in : ir_var_out;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue