diff --git a/src/Backends/Rendering/SDLTexture.cpp b/src/Backends/Rendering/SDLTexture.cpp index 160b6f99..15fe8dd0 100644 --- a/src/Backends/Rendering/SDLTexture.cpp +++ b/src/Backends/Rendering/SDLTexture.cpp @@ -446,7 +446,7 @@ void RenderBackend_HandleWindowResize(size_t width, size_t height) SDL_DestroyTexture(upscaled_framebuffer.texture); SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear"); - upscaled_framebuffer.texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA32, SDL_TEXTUREACCESS_TARGET, upscaled_framebuffer.width, upscaled_framebuffer.height * upscale_factor); + upscaled_framebuffer.texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA32, SDL_TEXTUREACCESS_TARGET, upscaled_framebuffer.width, upscaled_framebuffer.height); SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest"); if (upscaled_framebuffer.texture == NULL)