Fix: Workbench: Image Render AA
Regression from 66796ef9d4.
taa_finished is only true after the last sample.
This commit is contained in:
@@ -301,7 +301,7 @@ void AntiAliasingPass::draw(const DRWContext *draw_ctx,
|
||||
GPU_RG8,
|
||||
GPU_TEXTURE_USAGE_SHADER_READ | GPU_TEXTURE_USAGE_ATTACHMENT);
|
||||
|
||||
if (!draw_ctx->is_image_render() || taa_finished) {
|
||||
if (!draw_ctx->is_image_render() || last_sample || taa_finished) {
|
||||
/* After a certain point SMAA is no longer necessary. */
|
||||
if (smaa_mix_factor_ > 0.0f) {
|
||||
smaa_edge_fb_.ensure(GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE(smaa_edge_tx_));
|
||||
|
||||
Reference in New Issue
Block a user