Fix lime_gl_tex_sub_image_2d crash on neko

This commit is contained in:
vroad
2015-04-04 21:11:40 +09:00
parent a093d456c6
commit 78e5c32efd

View File

@@ -1319,7 +1319,7 @@ namespace lime {
unsigned char *data = 0;
ByteArray bytes (arg[aBuffer]);
if (bytes.mValue) {
if (!val_is_null (bytes.mValue)) {
data = bytes.Bytes () + val_int (arg[aOffset]);