mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
Use the correct length in _cogl_texture_flush_vertices
The check for whether there are any rectangles to flush was using the wrong value so it would always flush. Thanks to Johan Bilien for spotting.
This commit is contained in:
parent
29505dd0ba
commit
e3f077d55f
@ -1911,7 +1911,7 @@ _cogl_texture_flush_vertices (void)
|
||||
{
|
||||
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
|
||||
|
||||
if (ctx->texture_vertices > 0)
|
||||
if (ctx->texture_vertices->len > 0)
|
||||
{
|
||||
CoglTextureGLVertex *p
|
||||
= (CoglTextureGLVertex *) ctx->texture_vertices->data;
|
||||
|
Loading…
Reference in New Issue
Block a user