mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 12:41:07 +00:00
gl renderer: Don't assume an atlas
The source uniform may or may not point to a glyph atlas. The optimization we do for color nodes is only possible if it does, so check this. Fixes: #6094
This commit is contained in:
parent
8f4fb45715
commit
ec1a1d0e34
@ -1466,7 +1466,8 @@ gsk_gl_render_job_visit_color_node (GskGLRenderJob *job,
|
||||
batch = gsk_gl_command_queue_get_batch (job->command_queue);
|
||||
|
||||
/* Limit the size, or we end up with a coordinate overflow somewhere. */
|
||||
if (node->bounds.size.width < 300 &&
|
||||
if (job->source_is_glyph_atlas &&
|
||||
node->bounds.size.width < 300 &&
|
||||
node->bounds.size.height < 300 &&
|
||||
batch->any.kind == GSK_GL_COMMAND_KIND_DRAW &&
|
||||
batch->any.program == program->id)
|
||||
|
Loading…
Reference in New Issue
Block a user