mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-02 20:11:15 +00:00
Log effective MSAA
This commit is contained in:
parent
17ec92f194
commit
f9c3a984ef
@ -288,12 +288,20 @@ OpenGLES3Renderer::OpenGLES3Renderer(
|
||||
: m_context(context), m_shaderProgram(shaderProgram), m_msaa(msaaSamples)
|
||||
{
|
||||
glGenFramebuffers(1, &m_fbo);
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, m_fbo);
|
||||
|
||||
GLint maxSamples;
|
||||
glGetIntegerv(GL_MAX_SAMPLES, &maxSamples);
|
||||
if (m_msaa > maxSamples) {
|
||||
m_msaa = maxSamples;
|
||||
}
|
||||
SDL_Log(
|
||||
"MSAA is %s. Requested samples: %d, active samples: %d, max samples: %d",
|
||||
m_msaa > 1 ? "on" : "off",
|
||||
msaaSamples,
|
||||
m_msaa,
|
||||
maxSamples
|
||||
);
|
||||
|
||||
m_virtualWidth = width;
|
||||
m_virtualHeight = height;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user