shithub: cstory

Download patch

ref: 53e96486ce016d3bc511035e1f5ad5733bcc7247
parent: 2f748810bff975585c55fa5481946c49201f3672
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Sep 13 15:50:47 EDT 2020

Use proper texture access type

--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -167,7 +167,7 @@
 	if (surface == NULL)
 		return NULL;
 
-	surface->texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA32, render_target ? SDL_TEXTUREACCESS_TARGET : 0, width, height);
+	surface->texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA32, render_target ? SDL_TEXTUREACCESS_TARGET : SDL_TEXTUREACCESS_STATIC, width, height);
 
 	if (surface->texture == NULL)
 	{