From c70fb0feb1de8f2c3b7e5429bb925d4fa583f113 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Tue, 24 Mar 2015 20:27:24 -0700 Subject: [PATCH] Reset GPUCMD buffer after running GPU_Reset commands. --- libctru/source/gpu/gpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libctru/source/gpu/gpu.c b/libctru/source/gpu/gpu.c index c913bc9..5d8d8da 100644 --- a/libctru/source/gpu/gpu.c +++ b/libctru/source/gpu/gpu.c @@ -216,6 +216,7 @@ void GPU_Reset(u32* gxbuf, u32* gpuBuf, u32 gpuBufSize) GPUCMD_Finalize(); GPUCMD_Run(gpuBuf); + GPUCMD_SetBufferOffset(0); } void GPU_SetFloatUniform(GPU_SHADER_TYPE type, u32 startreg, u32* data, u32 numreg)