mirror of
https://github.com/n64decomp/sm64
synced 2026-04-29 02:23:43 +00:00
11 lines
281 B
C
11 lines
281 B
C
#include "libultra_internal.h"
|
|
|
|
extern OSViContext *__osViNext;
|
|
|
|
void osViSwapBuffer(void *vaddr) {
|
|
u32 int_disabled = __osDisableInt();
|
|
__osViNext->buffer = vaddr;
|
|
__osViNext->unk00 |= 0x10; // TODO: figure out what this flag means
|
|
__osRestoreInt(int_disabled);
|
|
}
|