Added a platform cleanup function for the Vivante video driver
authorSam Lantinga <slouken@libsdl.org>
Thu, 16 Oct 2014 09:54:13 -0700
changeset 9169 70e5da67cf9d
parent 9168 b8e85a5ac99a
child 9170 872d1b4b34a1
Added a platform cleanup function for the Vivante video driver
src/video/vivante/SDL_vivanteplatform.c
src/video/vivante/SDL_vivanteplatform.h
src/video/vivante/SDL_vivantevideo.c
--- a/src/video/vivante/SDL_vivanteplatform.c	Thu Oct 16 09:41:42 2014 -0300
+++ b/src/video/vivante/SDL_vivanteplatform.c	Thu Oct 16 09:54:13 2014 -0700
@@ -26,11 +26,17 @@
 
 #ifdef VIVANTE_PLATFORM_GENERIC
 
-int VIVANTE_SetupPlatform(_THIS)
+int
+VIVANTE_SetupPlatform(_THIS)
 {
     return 0;
 }
 
+void
+VIVANTE_CleanupPlatform(_THIS)
+{
+}
+
 #endif /* VIVANTE_PLATFORM_GENERIC */
 
 #endif /* SDL_VIDEO_DRIVER_VIVANTE */
--- a/src/video/vivante/SDL_vivanteplatform.h	Thu Oct 16 09:41:42 2014 -0300
+++ b/src/video/vivante/SDL_vivanteplatform.h	Thu Oct 16 09:54:13 2014 -0700
@@ -36,6 +36,7 @@
 #endif
 
 extern int VIVANTE_SetupPlatform(_THIS);
+extern void VIVANTE_CleanupPlatform(_THIS);
 
 #endif /* SDL_VIDEO_DRIVER_VIVANTE */
 
--- a/src/video/vivante/SDL_vivantevideo.c	Thu Oct 16 09:41:42 2014 -0300
+++ b/src/video/vivante/SDL_vivantevideo.c	Thu Oct 16 09:54:13 2014 -0700
@@ -226,6 +226,8 @@
     SDL_EVDEV_Quit();
 #endif
 
+    VIVANTE_CleanupPlatform(_this);
+
 #if SDL_VIDEO_DRIVER_VIVANTE_VDK
     if (videodata->vdk_private) {
         vdkExit(videodata->vdk_private);