platform/android: rewrite egl part to separate not android-specific file

This commit is contained in:
mittorn
2023-10-26 04:52:41 +03:00
committed by Alibek Omarov
parent 34aab39f9b
commit c2e14eb3a3
4 changed files with 542 additions and 203 deletions

View File

@@ -879,6 +879,7 @@ void Platform_RunEvents( void )
{
// (*jni.env)->CallStaticVoidMethod( jni.env, jni.actcls, jni.toggleEGL, 0 );
// (*jni.env)->CallStaticVoidMethod( jni.env, jni.actcls, jni.toggleEGL, 1 );
Android_UpdateSurface( false );
Android_UpdateSurface( true );
SetBits( gl_vsync.flags, FCVAR_CHANGED ); // set swap interval
VID_SetMode();