vid/android: Remove pixelFormat selection code, it only used to set desktop bits per pixel

This commit is contained in:
mittorn
2023-12-01 07:05:11 +03:00
committed by Alibek Omarov
parent 88f76c6e1e
commit 16aa2e919f

View File

@@ -199,11 +199,6 @@ static int Android_GetGLAttribute( int eglAttr )
return ret;
}
int Android_GetSelectedPixelFormat( void )
{
return (*jni.env)->CallStaticIntMethod( jni.env, jni.actcls, jni.getSelectedPixelFormat );
}
qboolean R_Init_Video( const int type )
{
char buf[MAX_VA_STRING];
@@ -211,19 +206,6 @@ qboolean R_Init_Video( const int type )
cv_vid_scale = Cvar_FindVar( "vid_scale" );
cv_vid_rotate = Cvar_FindVar( "vid_rotate" );
switch( Android_GetSelectedPixelFormat() )
{
case 1:
refState.desktopBitsPixel = 16;
break;
case 2:
refState.desktopBitsPixel = 8;
break;
default:
refState.desktopBitsPixel = 32;
break;
}
if( FS_FileExists( GI->iconpath, true ) )
{
Q_snprintf( buf, sizeof( buf ), "%s/%s/%s", COM_CheckStringEmpty( host.rodir ) ? host.rodir : host.rootdir, GI->gamefolder, GI->iconpath );