mirror of https://github.com/mgba-emu/mgba.git
Remove SDL_WINDOW_OPENGL flag in mSDLSWInit
This commit is contained in:
parent
09f456484c
commit
fde15b6e7d
|
@ -22,7 +22,7 @@ void mSDLSWCreate(struct mSDLRenderer* renderer) {
|
|||
bool mSDLSWInit(struct mSDLRenderer* renderer) {
|
||||
unsigned width, height;
|
||||
renderer->core->baseVideoSize(renderer->core, &width, &height);
|
||||
renderer->window = SDL_CreateWindow(projectName, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, renderer->viewportWidth, renderer->viewportHeight, SDL_WINDOW_OPENGL | (SDL_WINDOW_FULLSCREEN_DESKTOP * renderer->player.fullscreen));
|
||||
renderer->window = SDL_CreateWindow(projectName, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, renderer->viewportWidth, renderer->viewportHeight, SDL_WINDOW_FULLSCREEN_DESKTOP * renderer->player.fullscreen);
|
||||
SDL_GetWindowSize(renderer->window, &renderer->viewportWidth, &renderer->viewportHeight);
|
||||
renderer->player.window = renderer->window;
|
||||
renderer->sdlRenderer = SDL_CreateRenderer(renderer->window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
|
||||
|
|
Loading…
Reference in New Issue