mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 03:58:01 +02:00
gl: Store the vertex offset in the operand
This commit is contained in:
parent
c75460c54d
commit
5819bb07eb
2 changed files with 2 additions and 0 deletions
|
|
@ -682,6 +682,7 @@ _cairo_gl_context_setup_operand (cairo_gl_context_t *ctx,
|
||||||
unsigned int vertex_offset)
|
unsigned int vertex_offset)
|
||||||
{
|
{
|
||||||
memcpy (&ctx->operands[tex_unit], operand, sizeof (cairo_gl_operand_t));
|
memcpy (&ctx->operands[tex_unit], operand, sizeof (cairo_gl_operand_t));
|
||||||
|
ctx->operands[tex_unit].vertex_offset = vertex_offset;
|
||||||
|
|
||||||
switch (operand->type) {
|
switch (operand->type) {
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,7 @@ typedef struct cairo_gl_operand {
|
||||||
float radius_1;
|
float radius_1;
|
||||||
} radial;
|
} radial;
|
||||||
};
|
};
|
||||||
|
unsigned int vertex_offset;
|
||||||
} cairo_gl_operand_t;
|
} cairo_gl_operand_t;
|
||||||
|
|
||||||
typedef struct _cairo_gl_context {
|
typedef struct _cairo_gl_context {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue