diff --git a/project/src/graphics/opengl/OpenGLBindings.cpp b/project/src/graphics/opengl/OpenGLBindings.cpp index 2cbf71468..87c8e4439 100644 --- a/project/src/graphics/opengl/OpenGLBindings.cpp +++ b/project/src/graphics/opengl/OpenGLBindings.cpp @@ -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]);