diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-11 17:40:55 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-11 17:40:55 +0000 |
commit | 8be90edcaadb4f1770bbd1451bb08372b25525d5 (patch) | |
tree | 428874d5441be61f420f1c4585d4c686c14bd67d /src/texture.c | |
parent | 2e5fd4864dd5353615a6b1ea5d014b18571cd7c7 (diff) | |
download | imv-8be90edcaadb4f1770bbd1451bb08372b25525d5.tar.gz |
Move SDL_RenderClear and SDL_RenderPresent back to main
Diffstat (limited to 'src/texture.c')
-rw-r--r-- | src/texture.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/texture.c b/src/texture.c index 7dd6157..ae71fa4 100644 --- a/src/texture.c +++ b/src/texture.c @@ -122,7 +122,6 @@ void imv_texture_draw(struct imv_texture *tex, int bx, int by, double scale) int offset_x = 0; int offset_y = 0; - SDL_RenderClear(tex->renderer); for(int y = 0; y < tex->num_chunks_tall; ++y) { for(int x = 0; x < tex->num_chunks_wide; ++x) { int img_w, img_h, img_access; @@ -142,5 +141,4 @@ void imv_texture_draw(struct imv_texture *tex, int bx, int by, double scale) offset_x = 0; offset_y += tex->chunk_height * scale; } - SDL_RenderPresent(tex->renderer); } |