Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2019-06-04 15:31:00 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-06-04 16:15:59 +0300
commit5361fc2c33253a7673c3352ae98070c9cf49165f (patch)
tree5e628b54162ff6ea0eef3b59f9f8a378989308a4 /source/blender/draw/modes
parent19691e3ae2ec97ede5d2973e1e055b027474bbdb (diff)
GPU: High Definition Color Buffer
For offscreen rendering a high definition color buffer is needed. Without it there are banding issues when doing multi-sampling viewport rendering. Reviewed By: fclem Maniphest Tasks: T65287 Differential Revision: https://developer.blender.org/D5009
Diffstat (limited to 'source/blender/draw/modes')
-rw-r--r--source/blender/draw/modes/overlay_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/overlay_mode.c b/source/blender/draw/modes/overlay_mode.c
index 3c5cb7cb5aa..fe989dbe8cd 100644
--- a/source/blender/draw/modes/overlay_mode.c
+++ b/source/blender/draw/modes/overlay_mode.c
@@ -482,7 +482,7 @@ static void overlay_draw_scene(void *vedata)
/* This is replaced by the next code block */
// MULTISAMPLE_SYNC_ENABLE(dfbl, dtxl);
- if (dfbl->multisample_fb != NULL) {
+ if (dfbl->multisample_fb != NULL && DRW_state_is_fbo()) {
DRW_stats_query_start("Multisample Blit");
GPU_framebuffer_bind(dfbl->multisample_fb);
GPU_framebuffer_clear_color(dfbl->multisample_fb, (const float[4]){0.0f});