Skip to content

Commit fa2d9f1

Browse files
committed
Fixed BatchShader instanceID when using command buffer with draw arguments using more than one instance.
1 parent 86e56bc commit fa2d9f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hxsl/Cache.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ class Cache {
933933
p : pos,
934934
e : TIf({ e : TVar(hasOffset), t : TBool, p : pos },{
935935
p : pos,
936-
e : TBinop(OpAssignOp(OpAdd), eoffset, { e : TCall({ e : TGlobal(ToInt), t : TVoid, p : pos },[{ p : pos, t : TFloat, e : TVar(inputOffset) }]), t : TInt, p : pos }),
936+
e : TBinop(OpAssign, eoffset, { e : TCall({ e : TGlobal(ToInt), t : TVoid, p : pos },[{ p : pos, t : TFloat, e : TVar(inputOffset) }]), t : TInt, p : pos }),
937937
t : TVoid,
938938
}, null),
939939
t : TVoid,

0 commit comments

Comments
 (0)