mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Revert "Refactor: Use DRW_STATE_NO_DRAW for depth merge pass"
This reverts commit a82fb9c3ff.
The commit breaks OpenGL since DRW_STATE_NO_DRAW disables rasterization
altogether. This means the assert still happens, but it is better than a
broken output.
Resolves llm-test/llm-reports#1268.
Pull Request: https://projects.blender.org/blender/blender/pulls/163230
This commit is contained in:
parent
73915eb274
commit
aa30bd4cd4
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ void Instance::begin_sync()
|
|||
/* Merges the object's depth to the viewport compositor depth pass. */
|
||||
PassSimple &pass = this->merge_depth_pass_ps;
|
||||
pass.init();
|
||||
pass.state_set(DRW_STATE_NO_DRAW);
|
||||
pass.state_set(DRW_STATE_WRITE_COLOR);
|
||||
pass.shader_set(ShaderCache::get().depth_pass_merge.get());
|
||||
pass.bind_texture("depth_buf", &this->depth_tx);
|
||||
pass.bind_image("depth_pass_img", &this->depth_pass_img);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue