From 2863ed36c15837963d7e1eac833a8581ed959d0a Mon Sep 17 00:00:00 2001 From: fincs Date: Thu, 5 Mar 2015 18:20:39 +0100 Subject: [PATCH] Whoops --- source/ibo.c | 2 +- source/vbo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ibo.c b/source/ibo.c index fff4a18..593c5bd 100644 --- a/source/ibo.c +++ b/source/ibo.c @@ -36,7 +36,7 @@ void C3Di_IBOBind(C3D_IBO* ibo) u32 pa = osConvertVirtToPhys((u32)ibo->data); u32 offset = (pa - ctx->vboPos) &~ BIT(31); - GPUCMD_AddSingleParam(0x000F0227, offset | (ibo->format << 31)); + GPUCMD_AddWrite(GPUREG_INDEXBUFFER_CONFIG, offset | (ibo->format << 31)); } void C3D_IBODelete(C3D_IBO* ibo) diff --git a/source/vbo.c b/source/vbo.c index eb2b7d0..d2affa2 100644 --- a/source/vbo.c +++ b/source/vbo.c @@ -38,7 +38,7 @@ void C3D_VBOBind(C3D_VBO* vbo) return; ctx->vboPos = osConvertVirtToPhys((u32)vbo->data); - GPUCMD_AddSingleParam(0x000F0200, ctx->vboPos >> 3); + GPUCMD_AddWrite(GPUREG_ATTRIBBUFFERS_LOC, ctx->vboPos >> 3); } void C3D_VBODelete(C3D_VBO* vbo)