From fa4b736fa25b99f0f88e945eb2f755aec6659e1f Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 21 Nov 2010 12:30:54 +0000 Subject: [PATCH] fix D3D9 build git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10622 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=1739bc4c7b59ff54fd2f3c0492ab4ca6ed6563ac --- gl_textures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl_textures.c b/gl_textures.c index 98fc44d6..1e7b4500 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -2045,8 +2045,8 @@ rtexture_t *R_LoadTextureDDSFile(rtexturepool_t *rtexturepool, const char *filen { case TEXTYPE_BGRA: d3dformat = (flags & TEXF_ALPHA) ? D3DFMT_A8R8G8B8 : D3DFMT_X8R8G8B8;break; case TEXTYPE_DXT1: case TEXTYPE_DXT1A: d3dformat = D3DFMT_DXT1;break; - case TEXTYPE_DXT2: case TEXTYPE_DXT3: d3dformat = D3DFMT_DXT3;break; - case TEXTYPE_DXT4: case TEXTYPE_DXT5: d3dformat = D3DFMT_DXT5;break; + case TEXTYPE_DXT3: d3dformat = D3DFMT_DXT3;break; + case TEXTYPE_DXT5: d3dformat = D3DFMT_DXT5;break; default: d3dformat = D3DFMT_A8R8G8B8;Host_Error("R_LoadTextureDDSFile: unsupported texture type %i when picking D3DFMT", (int)textype);break; } d3dusage = 0; -- 2.39.2