Fixed black texture regression in Bloodrayne (and possibly all other reported cases); Turned out to be an oversight (GetHostBaseTexture 2nd argument is not the TextureStage, but D3DUsage, dug!). I had to re-do each change line by line, testing as I went, to find this... Ah well, at least it didn't have anything to do with the new cache!

This commit is contained in:
patrickvl 2019-12-01 17:16:57 +01:00
parent ce191a66e0
commit b76f4c5d5a
1 changed files with 1 additions and 1 deletions

View File

@ -6992,7 +6992,7 @@ void EmuUpdateActiveTextureStages()
DWORD Type = GetXboxCommonResourceType(pBaseTexture);
switch (Type) {
case X_D3DCOMMON_TYPE_TEXTURE:
pHostBaseTexture = GetHostBaseTexture(pBaseTexture, i);
pHostBaseTexture = GetHostBaseTexture(pBaseTexture, /*D3DUsage=*/0, i);
break;
case X_D3DCOMMON_TYPE_SURFACE:
// Surfaces can be set in the texture stages, instead of textures