From 4cb74761c4804b88972b73eb592c63545735c384 Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Sun, 11 Jan 2009 09:21:00 +0000 Subject: [PATCH] fix black screen in some games when using 3D (zeromus check it) --- desmume/src/GPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index e047ff341..21b047e9d 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -2519,7 +2519,7 @@ static void GPU_ligne_layer(NDS_Screen * screen, u16 l) for(int k = start, q=0; k <= end; ++k, ++q) if(line3Dcolor[q] & 0x8000) - gpu->setFinalColor3D(gpu, (q+ofs)<<1, dst, line3Dcolor[q], line3Dalpha[q], 0); + gpu->setFinalColor3D(gpu, (q+ofs)<<1, dst, line3Dcolor[q], line3Dalpha[q], k); continue; }