Selaa lähdekoodia

Fix null access on DirectX11.

clementlandrin 1 vuosi sitten
vanhempi
commit
315abc8b87
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      h3d/impl/DirectXDriver.hx

+ 2 - 0
h3d/impl/DirectXDriver.hx

@@ -877,6 +877,8 @@ class DirectXDriver extends h3d.impl.Driver {
 			case TArray( t = TSampler(_) | TRWTexture(_) , SConst(n) ):
 				for( i in 0...n )
 					ctx.texturesTypes.push(t);
+			case TSampler(_), TRWTexture(_):
+				ctx.texturesTypes.push(p.type);
 			default:
 			}
 			p = p.next;