mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-15 19:40:38 +01:00
gl: Remove unused variables
This commit is contained in:
parent
4c7dd1be45
commit
3cff2da912
1 changed files with 0 additions and 9 deletions
|
|
@ -692,14 +692,11 @@ static void
|
|||
_cairo_gl_set_src_operand (cairo_gl_context_t *ctx,
|
||||
cairo_gl_composite_t *setup)
|
||||
{
|
||||
cairo_surface_attributes_t *src_attributes;
|
||||
GLfloat constant_color[4] = {0.0, 0.0, 0.0, 0.0};
|
||||
|
||||
if (ctx->current_shader)
|
||||
return;
|
||||
|
||||
src_attributes = &setup->src.texture.attributes;
|
||||
|
||||
switch (setup->src.type) {
|
||||
case CAIRO_GL_OPERAND_CONSTANT:
|
||||
_cairo_gl_set_tex_combine_constant_color (ctx, setup, 0,
|
||||
|
|
@ -747,13 +744,10 @@ _cairo_gl_set_src_alpha_operand (cairo_gl_context_t *ctx,
|
|||
cairo_gl_composite_t *setup)
|
||||
{
|
||||
GLfloat constant_color[4] = {0.0, 0.0, 0.0, 0.0};
|
||||
cairo_surface_attributes_t *src_attributes;
|
||||
|
||||
if (ctx->current_shader)
|
||||
return;
|
||||
|
||||
src_attributes = &setup->src.texture.attributes;
|
||||
|
||||
switch (setup->src.type) {
|
||||
case CAIRO_GL_OPERAND_CONSTANT:
|
||||
constant_color[0] = setup->src.constant.color[3];
|
||||
|
|
@ -792,14 +786,11 @@ static void
|
|||
_cairo_gl_set_component_alpha_mask_operand (cairo_gl_context_t *ctx,
|
||||
cairo_gl_composite_t *setup)
|
||||
{
|
||||
cairo_surface_attributes_t *mask_attributes;
|
||||
GLfloat constant_color[4] = {0.0, 0.0, 0.0, 0.0};
|
||||
|
||||
if (ctx->current_shader)
|
||||
return;
|
||||
|
||||
mask_attributes = &setup->mask.texture.attributes;
|
||||
|
||||
glTexEnvi (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE);
|
||||
glTexEnvi (GL_TEXTURE_ENV, GL_COMBINE_RGB, GL_MODULATE);
|
||||
glTexEnvi (GL_TEXTURE_ENV, GL_COMBINE_ALPHA, GL_MODULATE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue