Added experimental MSAA for default framebuffer
To enable, add MSAA=4 to [Experimental] in colobot.ini and disable standard MSAAdev-time-step
parent
2774fcd8a2
commit
3eadb0c6f7
|
@ -788,6 +788,15 @@ bool CApplication::CreateVideoSurface()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int msaa = 0;
|
||||||
|
if (GetConfigFile().GetIntProperty("Experimental", "MSAA", msaa))
|
||||||
|
{
|
||||||
|
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
|
||||||
|
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, msaa);
|
||||||
|
|
||||||
|
GetLogger()->Info("Using MSAA on default framebuffer (%d samples)\n", msaa);
|
||||||
|
}
|
||||||
|
|
||||||
/* If hardware acceleration specifically requested, this will force the hw accel
|
/* If hardware acceleration specifically requested, this will force the hw accel
|
||||||
and fail with error if not available */
|
and fail with error if not available */
|
||||||
if (m_deviceConfig.hardwareAccel)
|
if (m_deviceConfig.hardwareAccel)
|
||||||
|
|
Loading…
Reference in New Issue