diff options
Diffstat (limited to 'source/blender/draw/engines/overlay/overlay_antialiasing.c')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_antialiasing.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_antialiasing.c b/source/blender/draw/engines/overlay/overlay_antialiasing.c index 751c6dc7016..84a1fd346b4 100644 --- a/source/blender/draw/engines/overlay/overlay_antialiasing.c +++ b/source/blender/draw/engines/overlay/overlay_antialiasing.c @@ -83,7 +83,7 @@ void OVERLAY_antialiasing_init(OVERLAY_Data *vedata) GPUTexture *line_tex = NULL; if (pd->antialiasing.enabled) { - DRW_texture_ensure_fullscreen_2d(&txl->overlay_color_tx, GPU_RGBA8, DRW_TEX_FILTER); + DRW_texture_ensure_fullscreen_2d(&txl->overlay_color_tx, GPU_SRGB8_A8, DRW_TEX_FILTER); DRW_texture_ensure_fullscreen_2d(&txl->overlay_line_tx, GPU_RGBA8, 0); color_tex = txl->overlay_color_tx; @@ -194,9 +194,7 @@ void OVERLAY_antialiasing_end(OVERLAY_Data *vedata) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); if (pd->antialiasing.enabled) { - GPU_framebuffer_bind(dfbl->color_only_fb); + GPU_framebuffer_bind(dfbl->overlay_only_fb); DRW_draw_pass(psl->antialiasing_ps); - - GPU_framebuffer_bind(dfbl->default_fb); } } |