Skip to content
Browse files

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!
  • Loading branch information...
PatrickvL committed Dec 1, 2019
1 parent ce191a6 commit b76f4c5d5a6c8df34b1fc0dac0d871764e9720b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/hle/D3D8/Direct3D9/Direct3D9.cpp
@@ -6992,7 +6992,7 @@ void EmuUpdateActiveTextureStages()
DWORD Type = GetXboxCommonResourceType(pBaseTexture);
switch (Type) {
pHostBaseTexture = GetHostBaseTexture(pBaseTexture, i);
pHostBaseTexture = GetHostBaseTexture(pBaseTexture, /*D3DUsage=*/0, i);
// Surfaces can be set in the texture stages, instead of textures

0 comments on commit b76f4c5

Please sign in to comment.
You can’t perform that action at this time.