Skip to content

Commit

Permalink
Fix Allocator format id.
Browse files Browse the repository at this point in the history
  • Loading branch information
clementlandrin committed Dec 20, 2024
1 parent 55cf379 commit f6dbba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hxd/impl/Allocator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class Allocator {
return Static;
if ( flags == Dynamic )
return Dynamic;
if ( flags == haxe.EnumFlags.ofInt(h3d.Buffer.BufferFlag.UniformBuffer.getIndex() | h3d.Buffer.BufferFlag.Dynamic.getIndex()) )
if ( flags == haxe.EnumFlags.ofInt((1 << h3d.Buffer.BufferFlag.UniformBuffer.getIndex()) | (1 << h3d.Buffer.BufferFlag.Dynamic.getIndex())) )
return UniformDynamic;
if ( flags == haxe.EnumFlags.ofInt(h3d.Buffer.BufferFlag.UniformBuffer.getIndex() | h3d.Buffer.BufferFlag.ReadWriteBuffer.getIndex()) )
if ( flags == haxe.EnumFlags.ofInt((1 << h3d.Buffer.BufferFlag.UniformBuffer.getIndex()) | (1 << h3d.Buffer.BufferFlag.ReadWriteBuffer.getIndex())) )
return UniformReadWrite;
if ( flags == UniformBuffer )
return Uniform;
Expand Down

0 comments on commit f6dbba0

Please sign in to comment.