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:
parent
496a354d7f
commit
30f9cd710b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue