Use proper texture access type
This commit is contained in:
parent
2f748810bf
commit
53e96486ce
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ RenderBackend_Surface* RenderBackend_CreateSurface(size_t width, size_t height,
|
||||||
if (surface == NULL)
|
if (surface == NULL)
|
||||||
return 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)
|
if (surface->texture == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue