Skip to content

Commit

Permalink
fix msaa in love.window.getMode not updating after setMode.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Aug 11, 2024
1 parent de99a8f commit ff2f57b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/window/sdl/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,12 +737,13 @@ bool Window::setWindow(int width, int height, WindowSettings *settings)
#endif

graphics->setMode(context, (int) scaledw, (int) scaledh, pixelWidth, pixelHeight, f.stencil, f.depth, f.msaa);
this->settings.msaa = graphics->getBackbufferMSAA();
}
else
{
graphics->backbufferChanged((int) scaledw, (int) scaledh, pixelWidth, pixelHeight, f.stencil, f.depth, f.msaa);
}

this->settings.msaa = graphics->getBackbufferMSAA();
}

// Set fullscreen when user requested it before.
Expand Down

0 comments on commit ff2f57b

Please sign in to comment.