Minor pointer fix

This commit is contained in:
Joshua Granick
2018-08-29 13:23:58 -07:00
parent 56e37aa886
commit e488e20153
2 changed files with 4 additions and 1 deletions

View File

@@ -452,6 +452,8 @@ namespace lime {
double lime_bytes_get_data_pointer_offset (value bytes, int offset) {
if (val_is_null (bytes)) return 0;
Bytes data = Bytes (bytes);
return (uintptr_t)data.b + offset;
@@ -460,6 +462,7 @@ namespace lime {
HL_PRIM double hl_lime_bytes_get_data_pointer_offset (Bytes* bytes, int offset) {
if (!bytes) return 0;
return (uintptr_t)bytes->b + offset;
}

View File

@@ -2754,7 +2754,7 @@ abstract WebGL2RenderContext(Dynamic) from Dynamic to Dynamic {
#if !lime_webgl
public inline function texImage2D (target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, srcData:ArrayBufferView, srcOffset:Int = 0):Void {
#else
public inline function texImage2D (foo:Dynamic, target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Dynamic, ?format:Int, ?type:Int, ?srcData:Dynamic, ?srcOffset:Int):Void {
public inline function texImage2D (target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Dynamic, ?format:Int, ?type:Int, ?srcData:Dynamic, ?srcOffset:Int):Void {
#end
#if !lime_webgl