Fix #146086: Regression: OpenSubdiv: GPU Shaders gets recompiled for each evaluation

Regression in 1e4764a9a5 which accidentally removed use of
the g_subdiv_evaluator_cache.

Pull Request: https://projects.blender.org/blender/blender/pulls/146097
This commit is contained in:
Sergey Sharybin
2025-09-11 17:17:30 +02:00
committed by Sergey Sharybin
parent d7bcf6e1f9
commit 963569caf4

View File

@@ -1642,7 +1642,7 @@ static bool draw_subdiv_create_requested_buffers(Object &ob,
};
if (!bke::subdiv::eval_begin_from_mesh(
subdiv, mesh_eval, bke::subdiv::SUBDIV_EVALUATOR_TYPE_GPU))
subdiv, mesh_eval, bke::subdiv::SUBDIV_EVALUATOR_TYPE_GPU, {}, g_subdiv_evaluator_cache))
{
/* This could happen in two situations:
* - OpenSubdiv is disabled.