...
|
...
|
@@ -216,7 +216,6 @@ init(void)
|
216
|
216
|
gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STATIC, ppu.width + PAD * 2, ppu.height + PAD * 2);
|
217
|
217
|
if(gTexture == NULL || SDL_SetTextureBlendMode(gTexture, SDL_BLENDMODE_NONE))
|
218
|
218
|
return error("sdl_texture", SDL_GetError());
|
219
|
|
- SDL_UpdateTexture(gTexture, NULL, ppu_screen, 4);
|
220
|
219
|
if(!(ppu_screen = malloc(ppu.width * ppu.height * sizeof(Uint32))))
|
221
|
220
|
return 0;
|
222
|
221
|
SDL_StartTextInput();
|