diff --git a/shared/rd-rend2/tr_ghoul2.cpp b/shared/rd-rend2/tr_ghoul2.cpp index 28397c38b8..2ac9ac72a7 100644 --- a/shared/rd-rend2/tr_ghoul2.cpp +++ b/shared/rd-rend2/tr_ghoul2.cpp @@ -4294,7 +4294,7 @@ qboolean R_LoadMDXM(model_t *mod, void *buffer, const char *mod_name, qboolean & // LL(surf->maxVertBoneWeights); //triCount += surf->numTriangles; - + if ( surf->numVerts > SHADER_MAX_VERTEXES ) { Com_Error( ERR_DROP, diff --git a/shared/rd-rend2/tr_main.cpp b/shared/rd-rend2/tr_main.cpp index 0420e551b2..2c1922610a 100644 --- a/shared/rd-rend2/tr_main.cpp +++ b/shared/rd-rend2/tr_main.cpp @@ -1020,7 +1020,7 @@ Sets the z-component transformation part in the projection matrix void R_SetupProjectionZ(viewParms_t *dest) { float zNear, zFar, depth; - + zNear = dest->zNear * tr.widthRatioCoef; zFar = dest->zFar; diff --git a/shared/rd-rend2/tr_mesh.cpp b/shared/rd-rend2/tr_mesh.cpp index 9c1cdcd06c..66d135d3e4 100644 --- a/shared/rd-rend2/tr_mesh.cpp +++ b/shared/rd-rend2/tr_mesh.cpp @@ -253,7 +253,7 @@ int R_ComputeLOD( trRefEntity_t *ent ) { } if ( !( ent->e.renderfx & RF_NOLOD ) ) lod += r_lodbias->integer; - + if ( lod >= tr.currentModel->numLods ) lod = tr.currentModel->numLods - 1; if ( lod < 0 )