gl renderer: Don't copy matrix/offset of color matrix nodes into ops
This commit is contained in:
@@ -2492,10 +2492,10 @@ apply_color_matrix_op (const Program *program,
|
||||
float mat[16];
|
||||
float vec[4];
|
||||
OP_PRINT (" -> Color Matrix");
|
||||
graphene_matrix_to_float (&op->matrix, mat);
|
||||
graphene_matrix_to_float (op->matrix, mat);
|
||||
glUniformMatrix4fv (program->color_matrix.color_matrix_location, 1, GL_FALSE, mat);
|
||||
|
||||
graphene_vec4_to_float (&op->offset, vec);
|
||||
graphene_vec4_to_float (op->offset, vec);
|
||||
glUniform4fv (program->color_matrix.color_offset_location, 1, vec);
|
||||
}
|
||||
|
||||
|
||||
@@ -653,8 +653,8 @@ ops_set_color_matrix (RenderOpBuilder *builder,
|
||||
current_program_state->color_matrix.offset = *offset;
|
||||
|
||||
op = ops_begin (builder, OP_CHANGE_COLOR_MATRIX);
|
||||
op->matrix = *matrix;
|
||||
op->offset = *offset;
|
||||
op->matrix = matrix;
|
||||
op->offset = offset;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -118,8 +118,8 @@ typedef struct
|
||||
|
||||
typedef struct
|
||||
{
|
||||
graphene_matrix_t matrix;
|
||||
graphene_vec4_t offset;
|
||||
const graphene_matrix_t *matrix;
|
||||
const graphene_vec4_t *offset;
|
||||
} OpColorMatrix;
|
||||
|
||||
typedef struct
|
||||
|
||||
Reference in New Issue
Block a user