Skip to content

Instantly share code, notes, and snippets.

@z-ohnami
Created April 23, 2014 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z-ohnami/11219720 to your computer and use it in GitHub Desktop.
Save z-ohnami/11219720 to your computer and use it in GitHub Desktop.
Fix OpenFL part 3
(in /usr/lib/haxe/lib/openfl-native/1,3,0/openfl/utils/ArrayBufferView.hx)
84 inline public function getFloat32 (position:Int):Float {
85
86 #if cpp
87 untyped return __global__.__hxcpp_memory_get_float (bytes, position + byteOffset);
88 #else
89 buffer.position = position + byteOffset;
90 //return buffer.readFloat ();
91 return buffer.readFloat (buffer.position); // added argument
92 #end
93
94 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment