[Bf-blender-cvs] [30f9cd710b3] blender2.8: GPUFramebuffer: Enable multisample when binding a Multisample FBO

Clément Foucault noreply at git.blender.org
Tue Sep 26 13:44:22 CEST 2017


Commit: 30f9cd710b3a2edad5a13a67bbe7c89a53785dca
Author: Clément Foucault
Date:   Tue Sep 26 14:01:50 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB30f9cd710b3a2edad5a13a67bbe7c89a53785dca

GPUFramebuffer: Enable multisample when binding a Multisample FBO

For some reason it was not working on intel but was working on Nvidia.

===================================================================

M	source/blender/gpu/intern/gpu_framebuffer.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c
index 4ba0d5543fe..e7b70b70d80 100644
--- a/source/blender/gpu/intern/gpu_framebuffer.c
+++ b/source/blender/gpu/intern/gpu_framebuffer.c
@@ -348,6 +348,10 @@ void GPU_framebuffer_bind(GPUFrameBuffer *fb)
 		glReadBuffer(readattachement);
 	}
 
+	if (GPU_texture_target(tex) == GL_TEXTURE_2D_MULTISAMPLE) {
+		glEnable(GL_MULTISAMPLE);
+	}
+
 	glViewport(0, 0, GPU_texture_width(tex), GPU_texture_height(tex));
 	GG.currentfb = fb->object;
 }



More information about the Bf-blender-cvs mailing list