Skip to content

Commit 7062411

Browse files
committed
gsk/gl: ignore max_entry_size when zero
If the max_entry_size is zero, then assume we can add anything to the atlas. This allows for situations where we might be uploading an arc list to the atlas instead of pixel data for GPU font rendering.
1 parent 9dbd137 commit 7062411

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gsk/gl/gskgltexturelibrary.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ gsk_gl_texture_library_pack (GskGLTextureLibrary *self,
381381
*out_packed_x = 0;
382382
*out_packed_y = 0;
383383
}
384-
else if (width <= self->max_entry_size && height <= self->max_entry_size)
384+
else if (self->max_entry_size == 0 ||
385+
(width <= self->max_entry_size &&
386+
height <= self->max_entry_size))
385387
{
386388
int packed_x;
387389
int packed_y;

0 commit comments

Comments
 (0)