mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Refactor: Use DRW_STATE_NO_DRAW for depth merge pass
The grease pencil depth pass merge pass is currently an image store shader with no fragment output, yet it uses DRW_STATE_WRITE_COLOR, causing asserts, so instead, we use DRW_STATE_NO_DRAW. Pull Request: https://projects.blender.org/blender/blender/pulls/162074
This commit is contained in:
parent
e6a859d7b3
commit
a82fb9c3ff
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,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_WRITE_COLOR);
|
||||
pass.state_set(DRW_STATE_NO_DRAW);
|
||||
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