Switch back to SDL_UpdateTexture.

Hopefully temporary until I findout what I'm doing wrong.
This commit is contained in:
Julie Marchant 2019-06-13 11:39:45 -04:00
parent 28c68842a1
commit f43c81ec07
1 changed files with 2 additions and 3 deletions

View File

@ -29,10 +29,9 @@ SDL_Renderer *renderer;
SDL_Texture *renderer_texture;
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_UnlockTexture(renderer_texture);
SDL_RenderPresent(renderer);
}