From 31c0777594cd25c3566ec2efd59a781be890e9b9 Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Thu, 11 Jul 2019 11:46:07 +0200 Subject: [PATCH] Bug fix. --- GraphicsView/include/CGAL/Buffer_for_vao.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/GraphicsView/include/CGAL/Buffer_for_vao.h b/GraphicsView/include/CGAL/Buffer_for_vao.h index dbb440a9496..beeb5907486 100644 --- a/GraphicsView/include/CGAL/Buffer_for_vao.h +++ b/GraphicsView/include/CGAL/Buffer_for_vao.h @@ -183,11 +183,11 @@ public: bool is_empty() const { return - (m_pos_buffer!=nullptr && m_pos_buffer->empty()) && - (m_color_buffer!=nullptr || m_color_buffer->empty()) && - (m_flat_normal_buffer!=nullptr || m_flat_normal_buffer->empty()) && - (m_gouraud_normal_buffer!=nullptr || m_gouraud_normal_buffer->empty()) && - (m_index_buffer!=nullptr || m_index_buffer->empty()); + (m_pos_buffer==nullptr || m_pos_buffer->empty()) && + (m_color_buffer==nullptr || m_color_buffer->empty()) && + (m_flat_normal_buffer==nullptr || m_flat_normal_buffer->empty()) && + (m_gouraud_normal_buffer==nullptr || m_gouraud_normal_buffer->empty()) && + (m_index_buffer==nullptr || m_index_buffer->empty()); } bool has_position() const