Eevee: Fix bug with transparent object + volume rendering.
This was because the main_fb was not bound back to be updated. Following draw calls were drawn without depth buffer.
This commit is contained in:
parent
b857b8f4c4
commit
d89f9d70c5
|
@ -572,7 +572,11 @@ void EEVEE_volumes_resolve(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *veda
|
|||
SWAP(GPUFrameBuffer *, fbl->main_fb, fbl->effect_fb);
|
||||
SWAP(GPUFrameBuffer *, fbl->main_color_fb, fbl->effect_color_fb);
|
||||
SWAP(GPUTexture *, txl->color, txl->color_post);
|
||||
|
||||
/* Restore */
|
||||
GPU_framebuffer_texture_detach(fbl->effect_fb, dtxl->depth);
|
||||
GPU_framebuffer_texture_attach(fbl->main_fb, dtxl->depth, 0, 0);
|
||||
GPU_framebuffer_bind(fbl->main_fb);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue