diff --git a/Projects/Android/jni/OpenJK/code/rd-vanilla/G2_API.cpp b/Projects/Android/jni/OpenJK/code/rd-vanilla/G2_API.cpp index 66c2877..09bc27e 100644 --- a/Projects/Android/jni/OpenJK/code/rd-vanilla/G2_API.cpp +++ b/Projects/Android/jni/OpenJK/code/rd-vanilla/G2_API.cpp @@ -2185,8 +2185,7 @@ void G2API_AddSkinGore(CGhoul2Info_v &ghoul2,SSkinGoreData &gore) int lod; ResetGoreTag(); - const int lodbias= r_alwaysmaxlod->integer ? 0 : - Com_Clamp ( 0, 2,G2_DecideTraceLod(ghoul2[0],r_lodbias->integer)); + const int lodbias=Com_Clamp ( 0, 2,G2_DecideTraceLod(ghoul2[0],r_lodbias->integer)); const int maxLod =Com_Clamp (0,ghoul2[0].currentModel->numLods,3); //limit to the number of lods the main model has for(lod=lodbias;lodinteger) - { - return(0); - } - if (r_lodbias->integer > lodBias) { lodBias = r_lodbias->integer; diff --git a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_init.cpp b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_init.cpp index f8a75f8..5cf5004 100644 --- a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_init.cpp +++ b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_init.cpp @@ -55,7 +55,6 @@ cvar_t *r_dynamiclight; // rjr - removed for hacking cvar_t *r_dlightBacks; cvar_t *r_lodbias; -cvar_t *r_alwaysmaxlod; cvar_t *r_lodscale; cvar_t *r_norefresh; @@ -1556,11 +1555,6 @@ void R_Register( void ) // r_lodCurveError = ri.Cvar_Get( "r_lodCurveError", "250", CVAR_ARCHIVE_ND ); r_lodbias = ri.Cvar_Get( "r_lodbias", "-2", CVAR_ARCHIVE_ND ); -#ifdef _WIN32 - r_alwaysmaxlod = ri.Cvar_Get( "r_alwaysmaxlod", "1", CVAR_ARCHIVE_ND ); -#else - r_alwaysmaxlod = ri.Cvar_Get("r_alwaysmaxlod", "0", CVAR_ARCHIVE_ND); -#endif r_flares = ri.Cvar_Get ("r_flares", "1", CVAR_ARCHIVE_ND ); r_lodscale = ri.Cvar_Get( "r_lodscale", "10", CVAR_ARCHIVE_ND ); diff --git a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_local.h b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_local.h index 5cb58a8..d021ccd 100644 --- a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_local.h +++ b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_local.h @@ -1103,7 +1103,6 @@ extern cvar_t *r_texturebitslm; // number of desired lightmap texture bits extern cvar_t *r_measureOverdraw; // enables stencil buffer overdraw measurement extern cvar_t *r_lodbias; // push/pull LOD transitions -extern cvar_t * r_alwaysmaxlod; // force best LOD extern cvar_t *r_lodscale; extern cvar_t *r_primitives; // "0" = based on compiled vertex array existance diff --git a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_mesh.cpp b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_mesh.cpp index 4159340..c9aa9fa 100644 --- a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_mesh.cpp +++ b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_mesh.cpp @@ -197,11 +197,6 @@ static int R_ComputeLOD( trRefEntity_t *ent ) { return(0); } - if (r_alwaysmaxlod->integer) - { - return(0); - } - // multiple LODs exist, so compute projected bounding sphere // and use that as a criteria for selecting LOD // if ( tr.currentModel->md3[0] ) diff --git a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_model.cpp b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_model.cpp index 572cbdd..afc6de0 100644 --- a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_model.cpp +++ b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_model.cpp @@ -722,7 +722,7 @@ Ghoul2 Insert End // if we have a valid model and are biased // so that we won't see any higher detail ones, // stop loading them - if ( r_alwaysmaxlod->integer || lod <= r_lodbias->integer ) { + if ( lod <= r_lodbias->integer ) { break; } } diff --git a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_surface.cpp b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_surface.cpp index 706ab23..1e51e71 100644 --- a/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_surface.cpp +++ b/Projects/Android/jni/OpenJK/code/rd-vanilla/tr_surface.cpp @@ -1612,8 +1612,7 @@ static void RB_SurfaceLathe() VectorSet2( l_oldpt, e->axis[0][0], e->axis[0][1] ); // do scalability stuff...r_lodbias 0-3 - int lod = r_alwaysmaxlod->integer ? 1 : - r_lodbias->integer + 1; + int lod = r_lodbias->integer + 1; if ( lod > 4 ) { lod = 4;