]> 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:49 +0000 (23:03 -0700)
libctru/source/gfx.c

index 15dbbcc379b87d1d7af70014dcd8aaa01c3335a4..19975f204d390a43820762537bce5d4ba30decf5 100644 (file)
@@ -188,7 +188,7 @@ void gfxExit(void)
        screenFree(gfxTopLeftFramebuffers[0]);
 
        //unmap GSP shared mem
-       svcUnmapMemoryBlock(gspSharedMemHandle, 0x10002000);
+       svcUnmapMemoryBlock(gspSharedMemHandle, (u32)gfxSharedMemory);
 
        GSPGPU_UnregisterInterruptRelayQueue();