opengl: fix GL errors when MSAA is enabled for the window.

This commit is contained in:
Sasha Szpakowski
2024-04-09 17:33:11 -03:00
parent bb9fb54ef4
commit b01ff0e8ee
+1 -1
View File
@@ -1063,7 +1063,7 @@ void Graphics::discard(OpenGL::FramebufferTarget target, const std::vector<bool>
attachments.reserve(colorbuffers.size());
// glDiscardFramebuffer uses different attachment enums for the default FBO.
if (!isRenderTargetActive() && getInternalBackbufferFBO() == 0)
if (gl.getFramebuffer(target) == 0)
{
if (colorbuffers.size() > 0 && colorbuffers[0])
attachments.push_back(GL_COLOR);