gpu: Fix color convert path to not crash

The occlusion culling reorganization messed up this branch.

Make it work again.
This commit is contained in:
Benjamin Otte
2024-07-13 10:27:29 +02:00
parent ceac0ce9aa
commit d9ab6495ef

View File

@@ -3928,6 +3928,10 @@ gsk_gpu_node_processor_process (GskGpuFrame *frame,
gsk_gpu_node_processor_add_node (&self, node);
}
gsk_gpu_render_pass_end_op (frame,
target,
pass_type);
}
else
{
@@ -3951,6 +3955,13 @@ gsk_gpu_node_processor_process (GskGpuFrame *frame,
if (image != NULL)
{
/* FIXME: Needs blend mode off to avoid the clear */
gsk_gpu_render_pass_begin_op (frame,
target,
clip,
GSK_VEC4_TRANSPARENT,
pass_type);
self.blend = GSK_GPU_BLEND_ADD;
self.pending_globals |= GSK_GPU_GLOBAL_BLEND;
gsk_gpu_node_processor_sync_globals (&self, 0);
@@ -3966,15 +3977,15 @@ gsk_gpu_node_processor_process (GskGpuFrame *frame,
&node->bounds,
&self.offset,
&tex_rect);
gsk_gpu_render_pass_end_op (frame,
target,
pass_type);
g_object_unref (image);
}
}
gsk_gpu_render_pass_end_op (frame,
target,
pass_type);
gsk_gpu_node_processor_finish (&self);
}