]> Chaos Git - corbenik/ctrulib.git/commitdiff
fixed bug which caused gsp shared mem to never be unmapped when using gfx
authorsmea <smealum@gmail.com>
Wed, 21 Oct 2015 06:03:03 +0000 (23:03 -0700)
committersmea <smealum@gmail.com>
Wed, 21 Oct 2015 06:03:03 +0000 (23:03 -0700)
libctru/source/gfx.c

index f0b68a378364929c08555ce1c8e5661740d2056a..d99d420157ff4197dc281c0adb41c59675e79e7a 100644 (file)
@@ -187,7 +187,7 @@ void gfxExit()
        screenFree(gfxTopLeftFramebuffers[0]);
 
        //unmap GSP shared mem
-       svcUnmapMemoryBlock(gspSharedMemHandle, 0x10002000);
+       svcUnmapMemoryBlock(gspSharedMemHandle, (u32)gfxSharedMemory);
 
        GSPGPU_UnregisterInterruptRelayQueue(NULL);