diff --git a/libs/video/renderer/glsl/glsl_bsp.c b/libs/video/renderer/glsl/glsl_bsp.c index e09a62613..ecffcef56 100644 --- a/libs/video/renderer/glsl/glsl_bsp.c +++ b/libs/video/renderer/glsl/glsl_bsp.c @@ -805,13 +805,11 @@ draw_elechain (elechain_t *ec, int matloc, int vertloc, int tlstloc, qfeglVertexAttrib4fv (quake_bsp.color.location, color); } } - if (ec->elements && ec->elements->list->size) { - if (ec->transform) { - Mat4Mult (bsp_vp, ec->transform, mat); - qfeglUniformMatrix4fv (matloc, 1, false, mat); - } else { - qfeglUniformMatrix4fv (matloc, 1, false, bsp_vp); - } + if (ec->transform) { + Mat4Mult (bsp_vp, ec->transform, mat); + qfeglUniformMatrix4fv (matloc, 1, false, mat); + } else { + qfeglUniformMatrix4fv (matloc, 1, false, bsp_vp); } for (el = ec->elements; el; el = el->next) { if (!el->list->size)