Sfoglia il codice sorgente

Fixed DirectXDriver in debug (#355)

Pascal Peridont 7 anni fa
parent
commit
5fca117471
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      h3d/impl/DirectXDriver.hx

+ 1 - 1
h3d/impl/DirectXDriver.hx

@@ -549,7 +549,7 @@ class DirectXDriver extends h3d.impl.Driver {
 		ctx.globals = dx.Driver.createBuffer(shader.globalsSize * 16, Dynamic, ConstantBuffer, CpuWrite, None, 0, null);
 		ctx.params = dx.Driver.createBuffer(shader.paramsSize * 16, Dynamic, ConstantBuffer, CpuWrite, None, 0, null);
 		#if debug
-		ctx.debugSource = source;
+		ctx.debugSource = shader.code;
 		#end
 		return { s : ctx, bytes : bytes };
 	}