diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-05-30 14:28:38 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-05-30 15:06:03 +0300 |
commit | 24e74f8bef813820076cce08635e7c4cb3f2da13 (patch) | |
tree | 0648fcbee74ed8cb0aeac591b2647da5e9cf8c56 /intern/opensubdiv/internal/evaluator/eval_output_gpu.cc | |
parent | f1c29b9bd3c8241b212d7d50b2d538b980a7d62e (diff) |
Fix T98449: Cycles crash changing frame after recent changes
Subdivision did not properly update when evaluating first without and then with
orco coordinates. Now update the subdivision evaluator settings every time, and
reallocate the vertex data buffer when needed.
there is an additional issue in this file where orco coordinates are not
available immediately on the first frame when they should be, and only appear
on the second frame. However that is an old limitation related to the depsgraph
not getting re-evaluated on viewport display mode changes, here we just fix the
crash.
Diffstat (limited to 'intern/opensubdiv/internal/evaluator/eval_output_gpu.cc')
-rw-r--r-- | intern/opensubdiv/internal/evaluator/eval_output_gpu.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/intern/opensubdiv/internal/evaluator/eval_output_gpu.cc b/intern/opensubdiv/internal/evaluator/eval_output_gpu.cc index 566071d581b..b352ed2c014 100644 --- a/intern/opensubdiv/internal/evaluator/eval_output_gpu.cc +++ b/intern/opensubdiv/internal/evaluator/eval_output_gpu.cc @@ -45,7 +45,6 @@ GpuEvalOutput::GpuEvalOutput(const StencilTable *vertex_stencils, const StencilTable *varying_stencils, const vector<const StencilTable *> &all_face_varying_stencils, const int face_varying_width, - const int vertex_data_width, const PatchTable *patch_table, VolatileEvalOutput::EvaluatorCache *evaluator_cache) : VolatileEvalOutput<GLVertexBuffer, @@ -56,7 +55,6 @@ GpuEvalOutput::GpuEvalOutput(const StencilTable *vertex_stencils, varying_stencils, all_face_varying_stencils, face_varying_width, - vertex_data_width, patch_table, evaluator_cache) { |