From ecd509166f6e598d2113aa22302100820bd062ec Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 30 Dec 2008 15:31:39 +0000 Subject: [PATCH] Fix screen corruption by missing memory zero'ing. --- desmume/src/GPU.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index 7baba9c0d..e0292baff 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -2523,6 +2523,8 @@ static INLINE void GPU_ligne_layer(NDS_Screen * screen, u16 l) u16 line3Dcolor[256]; u8 line3Dalpha[256]; + memset(line3Dcolor, 0, sizeof(line3Dcolor)); + memset(line3Dalpha, 0, sizeof(line3Dalpha)); //determine the 3d range to grab BGxOFS * bgofs = &gpu->dispx_st->dispx_BGxOFS[i16]; s16 hofs = (s16)T1ReadWord((u8 *)&bgofs->BGxHOFS, 0);