Prechádzať zdrojové kódy

Fix null access on DirectX11.

clementlandrin 1 rok pred
rodič
commit
315abc8b87
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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) ):
 			case TArray( t = TSampler(_) | TRWTexture(_) , SConst(n) ):
 				for( i in 0...n )
 				for( i in 0...n )
 					ctx.texturesTypes.push(t);
 					ctx.texturesTypes.push(t);
+			case TSampler(_), TRWTexture(_):
+				ctx.texturesTypes.push(p.type);
 			default:
 			default:
 			}
 			}
 			p = p.next;
 			p = p.next;