glsl: silence unused 'var' variable warning
Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
@@ -888,8 +888,8 @@ builtin_variable_generator::generate_varyings()
|
|||||||
if (state->target == geometry_shader) {
|
if (state->target == geometry_shader) {
|
||||||
const glsl_type *per_vertex_in_type =
|
const glsl_type *per_vertex_in_type =
|
||||||
this->per_vertex_in.construct_interface_instance();
|
this->per_vertex_in.construct_interface_instance();
|
||||||
ir_variable *var = add_variable("gl_in", array(per_vertex_in_type, 0),
|
add_variable("gl_in", array(per_vertex_in_type, 0),
|
||||||
ir_var_shader_in, -1);
|
ir_var_shader_in, -1);
|
||||||
}
|
}
|
||||||
if (state->target == vertex_shader || state->target == geometry_shader) {
|
if (state->target == vertex_shader || state->target == geometry_shader) {
|
||||||
const glsl_type *per_vertex_out_type =
|
const glsl_type *per_vertex_out_type =
|
||||||
|
Reference in New Issue
Block a user