From c851581465b9bae8ac679415368d792cefd76de2 Mon Sep 17 00:00:00 2001 From: zlago Date: Mon, 7 Oct 2024 19:07:58 +0200 Subject: fixes --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index d5f6504..fbbb371 100644 --- a/src/main.c +++ b/src/main.c @@ -282,7 +282,7 @@ int main(int const argc, char *const *const argv) { return EXIT_FAILURE; } SDL_StopTextInput(); - if (scale <= 0) { + if (scale <= 0) { // this looks very wrong SDL_DisplayMode dm; if (SDL_GetDesktopDisplayMode(0, &dm) != 0) { SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "couldnt get desktop size", SDL_GetError(), NULL); @@ -309,6 +309,8 @@ int main(int const argc, char *const *const argv) { if (window == NULL) { goto end; } + + SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl"); // hack, i dont wanna deal with windows discarding render textures renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_TARGETTEXTURE | SDL_RENDERER_PRESENTVSYNC); if (renderer == NULL) { goto end; -- cgit 1.4.1-2-gfad0