Browse code

Removed white flash on launch

neauoire authored on 22/09/2021 18:56:27
Showing 1 changed files
... ...
@@ -165,7 +165,6 @@ set_size(Uint16 width, Uint16 height, int is_resize)
165 165
 	gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STATIC, ppu.width + PAD * 2, ppu.height + PAD * 2);
166 166
 	if(gTexture == NULL || SDL_SetTextureBlendMode(gTexture, SDL_BLENDMODE_NONE))
167 167
 		return error("sdl_texture", SDL_GetError());
168
-	SDL_UpdateTexture(gTexture, NULL, ppu_screen, sizeof(Uint32));
169 168
 	if(is_resize)
170 169
 		set_window_size(gWindow, (ppu.width + PAD * 2) * zoom, (ppu.height + PAD * 2) * zoom);
171 170
 	reqdraw = 1;