diff --git a/gl/cogl-texture.c b/gl/cogl-texture.c index 6031305e1..471bf4776 100644 --- a/gl/cogl-texture.c +++ b/gl/cogl-texture.c @@ -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;