From df2392c736fe8cee1826265dc9b335bd8ab3b980 Mon Sep 17 00:00:00 2001 From: dborth Date: Wed, 17 Nov 2010 07:27:53 +0000 Subject: [PATCH] --- source/video.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/video.cpp b/source/video.cpp index 0acc1ff..4e45663 100644 --- a/source/video.cpp +++ b/source/video.cpp @@ -547,8 +547,12 @@ InitGCVideo () VIDEO_Init(); // Allocate the video buffers - xfb[0] = (u32 *) MEM_K0_TO_K1 (memalign(32, 640*574*2)); - xfb[1] = (u32 *) MEM_K0_TO_K1 (memalign(32, 640*574*2)); + xfb[0] = (u32 *) memalign(32, 640*574*2); + xfb[1] = (u32 *) memalign(32, 640*574*2); + DCInvalidateRange(xfb[0], 640*574*2); + DCInvalidateRange(xfb[1], 640*574*2); + xfb[0] = (u32 *) MEM_K0_TO_K1 (xfb[0]); + xfb[1] = (u32 *) MEM_K0_TO_K1 (xfb[1]); GXRModeObj *rmode = FindVideoMode(); SetupVideoMode(rmode);