diff --git a/engine/gl/gl_backend.c b/engine/gl/gl_backend.c index 6b626afd0..36c935196 100644 --- a/engine/gl/gl_backend.c +++ b/engine/gl/gl_backend.c @@ -782,6 +782,7 @@ void GLBE_RenderShadowBuffer(unsigned int numverts, int vbo, vecV_t *verts, unsi shaderstate.sourcevbo = &shaderstate.dummyvbo; shaderstate.dummyvbo.indicies.gl.vbo = ibo; + GL_SelectEBO(ibo); if (shaderstate.allblackshader) {