From 252c9e5947caf6037253f6448b5ca106981f6969 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 5 Apr 2015 17:42:53 +0200 Subject: [PATCH] (D3D) d3d_set_texture - implement it properly --- gfx/d3d/d3d_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }