diff --git a/gfx/d3d/d3d_wrapper.cpp b/gfx/d3d/d3d_wrapper.cpp index 6c9757ff1f..a08e054132 100644 --- a/gfx/d3d/d3d_wrapper.cpp +++ b/gfx/d3d/d3d_wrapper.cpp @@ -307,7 +307,7 @@ void d3d_set_texture(LPDIRECT3DDEVICE dev, unsigned sampler, + fetchConstant); D3DDevice_SetTexture(dev, sampler, tex, pendingMask3); #else - dev->SetTexture(0, tex); + dev->SetTexture(sampler, tex); #endif }