Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ogl: check default framebuffer for msaa
default framebuffer must not be sampled, so throw a panicalert if it is
  • Loading branch information
degasus committed Nov 5, 2013
1 parent 948ace9 commit 274f6dd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Source/Core/VideoBackends/OGL/Src/Render.cpp
Expand Up @@ -497,6 +497,19 @@ Renderer::Renderer()
g_ogl_config.eSupportedGLSLVersion = GLSL_150;
}
#endif
int samples;
glGetIntegerv(GL_SAMPLES, &samples);
if(samples > 1)
{
// MSAA on default framebuffer isn't working because of glBlitFramebuffer.
// It also isn't useful as we don't render anything to the default framebuffer.
// We also try to get a non-msaa fb, so this only happens when forced by the driver.
PanicAlert("MSAA on default framebuffer isn't supported.\n"
"Please avoid forcing dolphin to use MSAA by the driver.\n"
"%d samples on default framebuffer found.", samples);
bSuccess = false;
}

if (!bSuccess)
{
// Not all needed extensions are supported, so we have to stop here.
Expand Down

0 comments on commit 274f6dd

Please sign in to comment.