From c37fd1ded7fac519b126bd630360af1c3890003a Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 22 Sep 2010 16:21:11 +0000 Subject: [PATCH] fix a compile error and some warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10480 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/r_shadow.c b/r_shadow.c index 454ec441..8e695852 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2052,6 +2052,7 @@ void R_Shadow_RenderMode_ShadowMap(int side, int clear, int size) r_viewport_t viewport; int flipped; GLuint fbo = 0; + float clearcolor[4]; nearclip = r_shadow_shadowmapping_nearclip.value / rsurface.rtlight->radius; farclip = 1.0f; bias = r_shadow_shadowmapping_bias.value * nearclip * (1024.0f / size);// * rsurface.rtlight->radius; @@ -2115,7 +2116,6 @@ init_done: GL_Scissor(viewport.x, viewport.y, viewport.width, viewport.height); break; case RENDERPATH_D3D9: - float clearcolor[4]; Vector4Set(clearcolor, 1,1,1,1); // completely different meaning than in OpenGL path r_shadow_shadowmap_parameters[1] = 0; @@ -4369,9 +4369,14 @@ void R_DrawModelShadowMaps(void) switch (vid.renderpath) { - case RENDERPATH_D3D9: - case RENDERPATH_D3D10: - case RENDERPATH_D3D11: + case RENDERPATH_GL11: + case RENDERPATH_GL13: + case RENDERPATH_GL20: + case RENDERPATH_CGGL: + break; + case RENDERPATH_D3D9: + case RENDERPATH_D3D10: + case RENDERPATH_D3D11: #ifdef OPENGL_ORIENTATION r_shadow_shadowmapmatrix.m[0][0] *= -1.0f; r_shadow_shadowmapmatrix.m[0][1] *= -1.0f; -- 2.39.2