wined3d: Only apply float R16G16F/R32G32F fixup when ARB_texture_rg isn't around and remove redundant code.

This commit is contained in:
Roderick Colenbrander 2010-04-07 13:21:14 +02:00 committed by Alexandre Julliard
parent edcdbc2a76
commit 2c5eee25ca
1 changed files with 2 additions and 4 deletions

View File

@ -2286,16 +2286,14 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
break; break;
case WINED3DFMT_R16G16_FLOAT: case WINED3DFMT_R16G16_FLOAT:
if (gl_info->supported[ARB_TEXTURE_RG]) break;
*convert = CONVERT_R16G16F; *convert = CONVERT_R16G16F;
*format = GL_RGB;
*type = GL_HALF_FLOAT_ARB;
*target_bpp = 6; *target_bpp = 6;
break; break;
case WINED3DFMT_R32G32_FLOAT: case WINED3DFMT_R32G32_FLOAT:
if (gl_info->supported[ARB_TEXTURE_RG]) break;
*convert = CONVERT_R32G32F; *convert = CONVERT_R32G32F;
*format = GL_RGB;
*type = GL_FLOAT;
*target_bpp = 12; *target_bpp = 12;
break; break;