wined3d: There is no need for the !Usage checks at the start of the resource type checks.

The return-path of the code will handle this properly and this also
ensures that the R8G8B8 dxVersion test is reached.
This commit is contained in:
Roderick Colenbrander 2008-03-18 09:38:55 +01:00 committed by Alexandre Julliard
parent 6677e15389
commit 7fd87f10cd
1 changed files with 0 additions and 8 deletions

View File

@ -2235,10 +2235,6 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
if(GL_SUPPORT(ARB_TEXTURE_CUBE_MAP)) {
/* Check if the texture format is around */
if(CheckTextureCapability(Adapter, CheckFormat)) {
/* No usage checks were requested, so return because we know that the format is supported */
if(!Usage)
return WINED3D_OK;
if(Usage & WINED3DUSAGE_AUTOGENMIPMAP) {
/* Check for automatic mipmap generation support */
if(GL_SUPPORT(SGIS_GENERATE_MIPMAP)) {
@ -2327,10 +2323,6 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
/* Check if the texture format is around */
if(CheckTextureCapability(Adapter, CheckFormat)) {
/* No usage checks were requested, so return because we know that the format is supported */
if(!Usage)
return WINED3D_OK;
if(Usage & WINED3DUSAGE_AUTOGENMIPMAP) {
/* Check for automatic mipmap generation support */
if(GL_SUPPORT(SGIS_GENERATE_MIPMAP)) {