Added multisample support to FGLRenderBuffers and added gl_multisample to the menus

This commit is contained in:
Magnus Norddahl 2016-07-30 15:33:30 +02:00
commit cfc20d1198
7 changed files with 223 additions and 37 deletions

View file

@ -188,7 +188,7 @@ void FGLRenderer::BloomScene()
mBlurShader->BlurVertical(mVBO, blurAmount, sampleCount, level0.HTexture, level0.VFramebuffer, level0.Width, level0.Height);
// Add bloom back to scene texture:
mBuffers->BindSceneFB();
mBuffers->BindSceneTextureFB();
glViewport(0, 0, mOutputViewport.width, mOutputViewport.height);
glEnable(GL_BLEND);
glBlendEquation(GL_FUNC_ADD);