1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-23 13:54:44 +00:00
oot/src/libultra_boot_O2/osViSwapBuffer.c

11 lines
229 B
C
Raw Normal View History

#include "global.h"
2020-03-17 04:31:30 +00:00
2020-03-22 21:19:43 +00:00
void osViSwapBuffer(void* vaddr) {
u32 prevInt = __osDisableInt();
2020-03-17 04:31:30 +00:00
__osViNext->buffer = vaddr;
__osViNext->state |= 0x10; // TODO: figure out what this flag means
__osRestoreInt(prevInt);
2020-03-17 04:31:30 +00:00
}