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:
Omar Emara 2026-08-28 11:04:45 +02:00 • committed by Omar Emara
parent 73915eb274
commit aa30bd4cd4

View file

@ -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);