Explorar o código

DX: fix samplers allocation

trethaller %!s(int64=4) %!d(string=hai) anos
pai
achega
b1884e84a6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/impl/DirectXDriver.hx

+ 1 - 1
h3d/impl/DirectXDriver.hx

@@ -1158,7 +1158,7 @@ class DirectXDriver extends h3d.impl.Driver {
 				var bits = @:privateAccess t.bits;
 				if( t.lodBias != 0 )
 					bits |= Std.int((t.lodBias + 32)*32) << 10;
-				if( i < maxSamplers && bits != state.samplerBits[sidx] ) {
+				if( sidx < maxSamplers && bits != state.samplerBits[sidx] ) {
 					var ss = samplerStates.get(bits);
 					if( ss == null ) {
 						var desc = new SamplerDesc();