mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
opengl: fix GL errors when MSAA is enabled for the window.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user