]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
UNMERGE
authorhavoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 <>
Wed, 22 Sep 2010 16:21:11 +0000 (16:21 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 24 Sep 2010 19:59:57 +0000 (21:59 +0200)
fix a compile error and some warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10480 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::unmerge=c37fd1ded7fac519b126bd630360af1c3890003a

r_shadow.c

index 8e6958522cdb9fcc4763ea084bcdd7e512f7a973..454ec4417007366c4206778bfb0205ba19d7362e 100644 (file)
@@ -2052,7 +2052,6 @@ 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;
@@ -2116,6 +2115,7 @@ 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,14 +4369,9 @@ void R_DrawModelShadowMaps(void)
 
        switch (vid.renderpath)
        {
-       case RENDERPATH_GL11:
-       case RENDERPATH_GL13:
-       case RENDERPATH_GL20:
-       case RENDERPATH_CGGL:
-               break;
-       case RENDERPATH_D3D9:
-       case RENDERPATH_D3D10:
-       case RENDERPATH_D3D11:
+               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;