From e7ffc153c22b73cf90fe90e9adc920e625930308 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Wed, 10 Apr 2013 02:40:09 +0200 Subject: [PATCH] Added back workaround in RB_DrawElementsWithCounters --- neo/renderer/tr_backend_draw.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/neo/renderer/tr_backend_draw.cpp b/neo/renderer/tr_backend_draw.cpp index c625b1a4..95358c5e 100644 --- a/neo/renderer/tr_backend_draw.cpp +++ b/neo/renderer/tr_backend_draw.cpp @@ -179,7 +179,15 @@ void RB_DrawElementsWithCounters( const drawSurf_t* surf ) if( surf->jointCache ) { - if( !verify( renderProgManager.ShaderUsesJoints() ) ) + // DG: this happens all the time in the erebus1 map with blendlight.vfp, + // so don't call assert (through verify) here until it's fixed (if fixable) + // else the game crashes on linux when using debug builds + + // FIXME: fix this properly if possible? + // RB: yes but it would require an additional blend light skinned shader + //if( !verify( renderProgManager.ShaderUsesJoints() ) ) + if( !renderProgManager.ShaderUsesJoints() ) + // DG end { return; }