GPUFramebuffer: Enable multisample when binding a Multisample FBO

For some reason it was not working on intel but was working on Nvidia.
This commit is contained in:
2017-09-26 14:01:50 +02:00
parent 496a354d7f
commit 30f9cd710b

View File

@@ -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;
}