Skip to content

Commit

Permalink
gsk/gl: ignore max_entry_size when zero
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chergert committed Mar 18, 2022
1 parent 9dbd137 commit 7062411
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gsk/gl/gskgltexturelibrary.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ gsk_gl_texture_library_pack (GskGLTextureLibrary *self,
*out_packed_x = 0;
*out_packed_y = 0;
}
else if (width <= self->max_entry_size && height <= self->max_entry_size)
else if (self->max_entry_size == 0 ||
(width <= self->max_entry_size &&
height <= self->max_entry_size))
{
int packed_x;
int packed_y;
Expand Down

0 comments on commit 7062411

Please sign in to comment.