uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 8d98d6d6ef2ab5b6692eee8a085c303603d5fbc7
parent 373a797e1e3ab17653ea70c1dcf12b7c0a25ab46
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Fri, 17 Sep 2021 17:22:12 +0200

emu: don't call SDL_UpdateTexture with NULL pixels

Diffstat:
Msrc/uxnemu.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -216,7 +216,6 @@ init(void) gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STATIC, ppu.width + PAD * 2, ppu.height + PAD * 2); if(gTexture == NULL || SDL_SetTextureBlendMode(gTexture, SDL_BLENDMODE_NONE)) return error("sdl_texture", SDL_GetError()); - SDL_UpdateTexture(gTexture, NULL, ppu_screen, 4); if(!(ppu_screen = malloc(ppu.width * ppu.height * sizeof(Uint32)))) return 0; SDL_StartTextInput();