Skip to content

Commit

Permalink
Added a platform cleanup function for the Vivante video driver
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 16, 2014
1 parent 5df970a commit 38f94e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/video/vivante/SDL_vivanteplatform.c
Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions src/video/vivante/SDL_vivanteplatform.h
Expand Up @@ -36,6 +36,7 @@
#endif

extern int VIVANTE_SetupPlatform(_THIS);
extern void VIVANTE_CleanupPlatform(_THIS);

#endif /* SDL_VIDEO_DRIVER_VIVANTE */

Expand Down
2 changes: 2 additions & 0 deletions src/video/vivante/SDL_vivantevideo.c
Expand Up @@ -226,6 +226,8 @@ VIVANTE_VideoQuit(_THIS)
SDL_EVDEV_Quit();
#endif

VIVANTE_CleanupPlatform(_this);

#if SDL_VIDEO_DRIVER_VIVANTE_VDK
if (videodata->vdk_private) {
vdkExit(videodata->vdk_private);
Expand Down

0 comments on commit 38f94e2

Please sign in to comment.