Merge pull request #400 from vroad/fix-neko-gl-crash

Fix lime_gl_tex_sub_image_2d crash on neko
This commit is contained in:
Joshua Granick
2015-04-08 10:47:34 -07:00

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]);