Browse Source

Fix null access on DirectX11.

clementlandrin 1 year ago
parent
commit
315abc8b87
1 changed files with 2 additions and 0 deletions
  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;