From ac99836c8805bd206e13ede9b5195c4abf658fe8 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 14 Sep 2005 04:23:18 +0000 Subject: [PATCH] just made some of the coding style more readable, a cosmetic whitespace change only. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1320 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_backend.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/engine/gl/gl_backend.c b/engine/gl/gl_backend.c index 9036828bb..4326d0370 100644 --- a/engine/gl/gl_backend.c +++ b/engine/gl/gl_backend.c @@ -2048,7 +2048,8 @@ void R_RenderMeshBuffer ( meshbuffer_t *mb, qboolean shadowpass ) shader_t *shader; shaderpass_t *pass; - if ( !numVerts ) { + if ( !numVerts ) + { return; } @@ -2062,19 +2063,23 @@ void R_RenderMeshBuffer ( meshbuffer_t *mb, qboolean shadowpass ) shader = mb->shader; r_lmtex = mb->infokey; - if ( currententity && !gl_state.in2d ) { + if ( currententity && !gl_state.in2d ) + { r_localShaderTime = r_refdef.time - currententity->shaderTime; - } else { + } else + { r_localShaderTime = realtime; } R_SetShaderState ( shader ); - if ( shader->numdeforms ) { + if ( shader->numdeforms ) + { R_DeformVertices ( mb ); } - if ( !numIndexes || shadowpass ) { + if ( !numIndexes || shadowpass ) + { return; } @@ -2082,7 +2087,8 @@ void R_RenderMeshBuffer ( meshbuffer_t *mb, qboolean shadowpass ) for ( i = 0, pass = shader->passes; i < shader->numpasses; ) { - if ( !(pass->flags & SHADER_PASS_DETAIL) || r_detailtextures.value ) { + if ( !(pass->flags & SHADER_PASS_DETAIL) || r_detailtextures.value ) + { pass->flush ( mb, pass ); }