diff --git a/RNGL/GLCanvas.m b/RNGL/GLCanvas.m index fa7720be73d1020cda51977516531c2e79ab8caa..3b8bcfbf961a00aac3b80775ced4849c2e067e91 100644 --- a/RNGL/GLCanvas.m +++ b/RNGL/GLCanvas.m @@ -194,7 +194,7 @@ RCT_NOT_IMPLEMENTED(-init) if (type == GL_SAMPLER_2D || type == GL_SAMPLER_CUBE) { uniforms[uniformName] = [NSNumber numberWithInt:units++]; - if (!value) { + if ([value isEqual:[NSNull null]]) { GLTexture *emptyTexture = [[GLTexture alloc] init]; [emptyTexture setPixelsEmpty]; textures[uniformName] = emptyTexture;