]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
enable gloss texture loading in GLES2 path
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Apr 2011 09:08:39 +0000 (09:08 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 1 Apr 2011 21:21:31 +0000 (23:21 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11001 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b1457e1f0ef8ccf219a2e65324b90b75066b7ed1

gl_rmain.c

index 4795d64ab17e24abec0c8fc647ad0939d0c0ae7e..509d69f884887da8dd4ce02c98b11f5789938b10 100644 (file)
@@ -3824,6 +3824,7 @@ void gl_main_start(void)
        case RENDERPATH_D3D10:
        case RENDERPATH_D3D11:
        case RENDERPATH_SOFT:
+       case RENDERPATH_GLES2:
                Cvar_SetValueQuick(&r_textureunits, vid.texunits);
                Cvar_SetValueQuick(&gl_combine, 1);
                Cvar_SetValueQuick(&r_glsl, 1);
@@ -3847,14 +3848,6 @@ void gl_main_start(void)
                r_loadgloss = false;
                r_loadfog = true;
                break;
-       case RENDERPATH_GLES2:
-               Cvar_SetValueQuick(&r_textureunits, 1);
-               Cvar_SetValueQuick(&gl_combine, 1);
-               Cvar_SetValueQuick(&r_glsl, 1);
-               r_loadnormalmap = true;
-               r_loadgloss = false;
-               r_loadfog = false;
-               break;
        }
 
        R_AnimCache_Free();