mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -04:00
enable double buffering on top screen to fix tearing
This commit is contained in:
parent
c27c0bd639
commit
cdab26b0a5
@ -134,6 +134,7 @@ static void InitCitro3D(void) {
|
|||||||
bottomTarget = C3D_RenderTargetCreate(240, 400, GPU_RB_RGBA8, GPU_RB_DEPTH24_STENCIL8);
|
bottomTarget = C3D_RenderTargetCreate(240, 400, GPU_RB_RGBA8, GPU_RB_DEPTH24_STENCIL8);
|
||||||
C3D_RenderTargetSetOutput(bottomTarget, GFX_BOTTOM, GFX_LEFT, DISPLAY_TRANSFER_FLAGS);
|
C3D_RenderTargetSetOutput(bottomTarget, GFX_BOTTOM, GFX_LEFT, DISPLAY_TRANSFER_FLAGS);
|
||||||
|
|
||||||
|
gfxSetDoubleBuffering(GFX_TOP, true);
|
||||||
SetDefaultState();
|
SetDefaultState();
|
||||||
AllocShaders();
|
AllocShaders();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user