Fix incorrect upscaled framebuffer size
This commit is contained in:
parent
c12149b96e
commit
4517c9be9e
1 changed files with 1 additions and 1 deletions
|
@ -446,7 +446,7 @@ void RenderBackend_HandleWindowResize(size_t width, size_t height)
|
||||||
SDL_DestroyTexture(upscaled_framebuffer.texture);
|
SDL_DestroyTexture(upscaled_framebuffer.texture);
|
||||||
|
|
||||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
|
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");
|
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest");
|
||||||
|
|
||||||
if (upscaled_framebuffer.texture == NULL)
|
if (upscaled_framebuffer.texture == NULL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue