shithub: riscv

Download patch

ref: d4f39b35bfbcedea83b3f3b4538697dbfcae70d0
parent: 762093d2125c0f6efffd55697e6b580dd607ccf3
author: cinap_lenrek <[email protected]>
date: Sun Aug 11 20:40:09 EDT 2013

games/doom: remove useless allocation of screen[0] buffer

screens 0-3 are already initialized by V_Init().

--- a/sys/src/games/doom/i_video.c
+++ b/sys/src/games/doom/i_video.c
@@ -57,8 +57,6 @@
 		exits(nil);
 	}
 	mousepid = pid;
-
-	screens[0] = (unsigned char*) malloc(SCREENWIDTH * SCREENHEIGHT);
 }
 
 void I_ShutdownGraphics(void)