gl: Add an assertion that we always have a texture

When painting, the sources must be textures and not windows, and we did
that wrong previously. This assertion makes sure that never happens
again.
This commit is contained in:
Benjamin Otte 2010-06-08 12:03:36 +02:00
parent c6c9a24a1d
commit f61b3f25af

View file

@ -100,6 +100,7 @@ _cairo_gl_pattern_texture_setup (cairo_gl_operand_t *operand,
}
assert (surface->base.backend == &_cairo_gl_surface_backend);
assert (_cairo_gl_surface_is_texture (surface));
operand->type = CAIRO_GL_OPERAND_TEXTURE;
operand->texture.surface = surface;