OpenGL Renderer: Improve robustness when changing the MSAA sample size.
This commit is contained in:
parent
d85f140b64
commit
ff84420424
|
@ -1956,8 +1956,15 @@ Render3DError OpenGLRenderer::ApplyRenderingSettings(const GFX3D_State &renderSt
|
||||||
|
|
||||||
if (this->_selectedMultisampleSize != oldSelectedMultisampleSize)
|
if (this->_selectedMultisampleSize != oldSelectedMultisampleSize)
|
||||||
{
|
{
|
||||||
|
if (!BEGINGL())
|
||||||
|
{
|
||||||
|
return OGLERROR_BEGINGL_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
GLsizei sampleSize = this->GetLimitedMultisampleSize();
|
GLsizei sampleSize = this->GetLimitedMultisampleSize();
|
||||||
this->ResizeMultisampledFBOs(sampleSize);
|
this->ResizeMultisampledFBOs(sampleSize);
|
||||||
|
|
||||||
|
ENDGL();
|
||||||
}
|
}
|
||||||
|
|
||||||
return Render3D::ApplyRenderingSettings(renderState);
|
return Render3D::ApplyRenderingSettings(renderState);
|
||||||
|
|
Loading…
Reference in New Issue