summaryrefslogtreecommitdiff
path: root/src/libultra_code/osViGetCurrentFramebuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libultra_code/osViGetCurrentFramebuffer.c')
-rw-r--r--src/libultra_code/osViGetCurrentFramebuffer.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libultra_code/osViGetCurrentFramebuffer.c b/src/libultra_code/osViGetCurrentFramebuffer.c
new file mode 100644
index 000000000..03aa515ae
--- /dev/null
+++ b/src/libultra_code/osViGetCurrentFramebuffer.c
@@ -0,0 +1,13 @@
+#include <ultra64.h>
+#include <global.h>
+
+u32* osViGetCurrentFramebuffer() {
+ register u32 sMask = __osDisableInt();
+ u32* var1;
+
+ var1 = __osViCurr->buffer;
+
+ __osRestoreInt(sMask);
+
+ return var1;
+}