diff --git a/cocos/renderer/CCPrimitive.cpp b/cocos/renderer/CCPrimitive.cpp index 0347f65145..624c0a48fb 100644 --- a/cocos/renderer/CCPrimitive.cpp +++ b/cocos/renderer/CCPrimitive.cpp @@ -67,7 +67,7 @@ Primitive::~Primitive() bool Primitive::init(VertexData* verts, IndexBuffer* indices, PrimitiveType type) { - if(nullptr == verts || nullptr == indices) return false; + if( nullptr == verts ) return false; if(verts != _verts) { CC_SAFE_RELEASE(_verts);