mirror of https://github.com/mgba-emu/mgba.git
Wii: Fix vsync issues
This commit is contained in:
parent
607c7ec890
commit
891d0c8541
|
@ -227,6 +227,8 @@ int main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void GBAWiiFrame(void) {
|
static void GBAWiiFrame(void) {
|
||||||
|
VIDEO_WaitVSync();
|
||||||
|
|
||||||
size_t x, y;
|
size_t x, y;
|
||||||
uint64_t* texdest = (uint64_t*) texmem;
|
uint64_t* texdest = (uint64_t*) texmem;
|
||||||
uint64_t* texsrc = (uint64_t*) renderer.outputBuffer;
|
uint64_t* texsrc = (uint64_t*) renderer.outputBuffer;
|
||||||
|
@ -268,7 +270,6 @@ static void GBAWiiFrame(void) {
|
||||||
GX_CopyDisp(framebuffer[whichFb], GX_TRUE);
|
GX_CopyDisp(framebuffer[whichFb], GX_TRUE);
|
||||||
VIDEO_SetNextFramebuffer(framebuffer[whichFb]);
|
VIDEO_SetNextFramebuffer(framebuffer[whichFb]);
|
||||||
VIDEO_Flush();
|
VIDEO_Flush();
|
||||||
VIDEO_WaitVSync();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GBAWiiLoadGame(const char* path) {
|
bool GBAWiiLoadGame(const char* path) {
|
||||||
|
|
Loading…
Reference in New Issue