Skip to content
Browse files

gsdx-d3d11: Fetch the texture PSM format rather than the context form…

…at in texture sampler.

Match opengl behavior.
  • Loading branch information...
lightningterror committed Oct 11, 2019
1 parent 70c2778 commit b34338a5009d09881e1bac758c31ae5d8d64d159
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugins/GSdx/Renderers/DX11/GSRendererDX11.cpp
@@ -613,7 +613,9 @@ void GSRendererDX11::EmulateBlending()

void GSRendererDX11::EmulateTextureSampler(const GSTextureCache::Source* tex)
const GSLocalMemory::psm_t &psm = GSLocalMemory::m_psm[m_context->TEX0.PSM];
// Warning fetch the texture PSM format rather than the context format. The latter could have been corrected in the texture cache for depth.
//const GSLocalMemory::psm_t &psm = GSLocalMemory::m_psm[m_context->TEX0.PSM];
const GSLocalMemory::psm_t &psm = GSLocalMemory::m_psm[tex->m_TEX0.PSM];
const GSLocalMemory::psm_t &cpsm = psm.pal > 0 ? GSLocalMemory::m_psm[m_context->TEX0.CPSM] : psm;

const uint8 wms = m_context->CLAMP.WMS;

0 comments on commit b34338a

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