base: fix last pipeline cache

This commit is contained in:
luboslenco
2026-07-13 13:41:00 +02:00
parent b97eca08fc
commit 7e3b761395
+2
View File
@@ -2517,6 +2517,8 @@ void render_path_end(void) {
} }
void render_path_draw_meshes(char *context) { void render_path_draw_meshes(char *context) {
gc_unroot(_mesh_object_last_pipeline);
_mesh_object_last_pipeline = NULL;
any_array_t *meshes = scene_meshes; any_array_t *meshes = scene_meshes;
for (i32 i = 0; i < meshes->length; ++i) { for (i32 i = 0; i < meshes->length; ++i) {
mesh_object_t *mesh = (mesh_object_t *)meshes->buffer[i]; mesh_object_t *mesh = (mesh_object_t *)meshes->buffer[i];