[Glide64] vbo_disable on Rom Closed

This commit is contained in:
zilmar 2016-06-04 16:50:02 +10:00
parent 0ec052177b
commit 74ea18b5c6
1 changed files with 7 additions and 1 deletions

View File

@ -1602,6 +1602,10 @@ void CALL PluginLoaded(void)
WriteTrace(TraceInterface, TraceDebug, "Done"); WriteTrace(TraceInterface, TraceDebug, "Done");
} }
#ifdef ANDROID
void vbo_disable(void);
#endif
/****************************************************************** /******************************************************************
Function: RomClosed Function: RomClosed
Purpose: This function is called when a rom is closed. Purpose: This function is called when a rom is closed.
@ -1612,6 +1616,9 @@ void CALL RomClosed(void)
{ {
WriteTrace(TraceGlide64, TraceDebug, "-"); WriteTrace(TraceGlide64, TraceDebug, "-");
#ifdef ANDROID
vbo_disable();
#endif
rdp.window_changed = TRUE; rdp.window_changed = TRUE;
g_romopen = FALSE; g_romopen = FALSE;
if (evoodoo) if (evoodoo)
@ -2381,7 +2388,6 @@ void CALL SurfaceChanged(int width, int height)
{ {
g_width = width; g_width = width;
g_height = height; g_height = height;
init_combiner();
} }
#endif #endif