Minor pointer fix
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user