summaryrefslogtreecommitdiff
path: root/src/cairo-gl-composite.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-05-26 21:23:40 +0200
committerBenjamin Otte <otte@redhat.com>2010-06-07 13:37:47 +0200
commit85d4c6c55b85c52d8f86247f00659e37354abd49 (patch)
tree5b32b65f56873896d5c4b9cfd8a9f48b661ea811 /src/cairo-gl-composite.c
parent9486ad5fbdad047b5194f6bed68a08bb4c594610 (diff)
gl: operand->texture.surface cannot be NULL
Diffstat (limited to 'src/cairo-gl-composite.c')
-rw-r--r--src/cairo-gl-composite.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cairo-gl-composite.c b/src/cairo-gl-composite.c
index 6cd2eb7d..760aabbc 100644
--- a/src/cairo-gl-composite.c
+++ b/src/cairo-gl-composite.c
@@ -390,13 +390,9 @@ _cairo_gl_operand_destroy (cairo_gl_operand_t *operand)
glDeleteTextures (1, &operand->radial.tex);
break;
case CAIRO_GL_OPERAND_TEXTURE:
- if (operand->texture.surface != NULL) {
- cairo_gl_surface_t *surface = operand->texture.surface;
-
- _cairo_pattern_release_surface (operand->pattern,
- &surface->base,
- &operand->texture.attributes);
- }
+ _cairo_pattern_release_surface (operand->pattern,
+ &operand->texture.surface->base,
+ &operand->texture.attributes);
break;
default:
case CAIRO_GL_OPERAND_COUNT: