I've created a game window of size 1280x720, and everything works great, until I want to change it to fullscreen mode. When I try to use SDL_SetWindowFullscreen(_window, SDL_WINDOW_FULLSCREEN), I get weird behavior where the window is rendered near the middle of the screen and gets cut off. It ends up looking something like this:
At first I thought it was a rendering bug, but I noticed that I can only move the mouse cursor within the game window area on my screen, so it's almost like the window itself is positioned oddly. One other thing I should note, when I set my game window to 800x600, it works just fine - it scales to fit and fills up the entire screen.
I have also tried SDL_WINDOW_FULLSCREEN_DESKTOP, but this also doesn't give me the desired behavior. This time it renders the screen in the bottom left corner, like this:
I can move the mouse cursor anywhere on screen, so this one may be a rendering issue. I noticed that if I call glViewport with different values I experimented with, it would change the position and size of