Wii: Fix draw ordering

This commit is contained in:
Jeffrey Pfau 2016-01-03 17:07:09 -08:00
parent 0bb45dad0d
commit b37835366d
1 changed files with 1 additions and 4 deletions

View File

@ -147,7 +147,6 @@ int main() {
reconfigureScreen(vmode); reconfigureScreen(vmode);
GX_SetCullMode(GX_CULL_NONE); GX_SetCullMode(GX_CULL_NONE);
GX_CopyDisp(framebuffer[whichFb], GX_TRUE);
GX_SetDispCopyGamma(GX_GM_1_0); GX_SetDispCopyGamma(GX_GM_1_0);
GX_ClearVtxDesc(); GX_ClearVtxDesc();
@ -281,11 +280,10 @@ static void _drawStart(void) {
} }
static void _drawEnd(void) { static void _drawEnd(void) {
GX_DrawDone();
whichFb = !whichFb; whichFb = !whichFb;
GX_CopyDisp(framebuffer[whichFb], GX_TRUE); GX_CopyDisp(framebuffer[whichFb], GX_TRUE);
GX_DrawDone();
VIDEO_SetNextFramebuffer(framebuffer[whichFb]); VIDEO_SetNextFramebuffer(framebuffer[whichFb]);
VIDEO_Flush(); VIDEO_Flush();
@ -674,7 +672,6 @@ static s8 WPAD_StickX(u8 chan, u8 right) {
return (s8)(val * 128.0f); return (s8)(val * 128.0f);
} }
static s8 WPAD_StickY(u8 chan, u8 right) { static s8 WPAD_StickY(u8 chan, u8 right) {
float mag = 0.0; float mag = 0.0;
float ang = 0.0; float ang = 0.0;