wined3d: Set the correct texture names on cube surfaces.

This commit is contained in:
Henri Verbeet 2009-03-11 10:15:09 +01:00 committed by Alexandre Julliard
parent 28582dbf6c
commit a75590343a
1 changed files with 2 additions and 2 deletions

View File

@ -231,9 +231,9 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_BindTexture(IWineD3DCubeTexture *i
for (i = 0; i < This->baseTexture.levels; ++i) { for (i = 0; i < This->baseTexture.levels; ++i) {
for (j = WINED3DCUBEMAP_FACE_POSITIVE_X; j <= WINED3DCUBEMAP_FACE_NEGATIVE_Z; ++j) { for (j = WINED3DCUBEMAP_FACE_POSITIVE_X; j <= WINED3DCUBEMAP_FACE_NEGATIVE_Z; ++j) {
if(This->baseTexture.is_srgb) { if(This->baseTexture.is_srgb) {
surface_set_texture_name(This->surfaces[j][i], This->baseTexture.textureName, TRUE); surface_set_texture_name(This->surfaces[j][i], This->baseTexture.srgbTextureName, TRUE);
} else { } else {
surface_set_texture_name(This->surfaces[j][i], This->baseTexture.srgbTextureName, FALSE); surface_set_texture_name(This->surfaces[j][i], This->baseTexture.textureName, FALSE);
} }
} }
} }