Switch back to SDL_UpdateTexture.
Hopefully temporary until I findout what I'm doing wrong.
This commit is contained in:
parent
28c68842a1
commit
f43c81ec07
|
@ -30,9 +30,8 @@ SDL_Texture *renderer_texture;
|
||||||
|
|
||||||
void renderer_update()
|
void renderer_update()
|
||||||
{
|
{
|
||||||
SDL_LockTexture(renderer_texture, NULL, &(screen->pixels), &(screen->pitch));
|
SDL_UpdateTexture(renderer_texture, NULL, screen->pixels, screen->pitch);
|
||||||
SDL_RenderCopy(renderer, renderer_texture, NULL, NULL);
|
SDL_RenderCopy(renderer, renderer_texture, NULL, NULL);
|
||||||
SDL_UnlockTexture(renderer_texture);
|
|
||||||
SDL_RenderPresent(renderer);
|
SDL_RenderPresent(renderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue