mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-01 08:20:14 +01:00
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:
parent
c6c9a24a1d
commit
f61b3f25af
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue