diff --git a/ege/resource/Mesh.cpp b/ege/resource/Mesh.cpp index 31f1ce8..fe8bf7e 100644 --- a/ege/resource/Mesh.cpp +++ b/ege/resource/Mesh.cpp @@ -119,7 +119,7 @@ void ege::resource::Mesh::draw(mat4& _positionMatrix, //EGE_DEBUG(m_name << " " << m_light); if (_enableDepthTest == true) { gale::openGL::enable(gale::openGL::flag_depthTest); - if (false == _enableDepthUpdate) { + if (_enableDepthUpdate == false) { glDepthMask(GL_FALSE); } } else { @@ -232,7 +232,7 @@ void ege::resource::Mesh::draw(mat4& _positionMatrix, m_GLprogram->unUse(); if (_enableDepthTest == true){ - if (false == _enableDepthUpdate) { + if (_enableDepthUpdate == false) { glDepthMask(GL_TRUE); } gale::openGL::disable(gale::openGL::flag_depthTest); diff --git a/ege/resource/Mesh.h b/ege/resource/Mesh.h index 9e2e387..4d39f02 100644 --- a/ege/resource/Mesh.h +++ b/ege/resource/Mesh.h @@ -31,8 +31,13 @@ namespace ege { namespace resource { class Mesh : public gale::Resource { public: - static std::shared_ptr createGrid(int32_t _lineCount, const vec3& _position=vec3(0,0,0), float _size=1.0f, const std::string& _materialName="basics"); - static std::shared_ptr createCube(float _size=1.0f, const std::string& _materialName="basics", const etk::Color& _color=etk::color::white); + static std::shared_ptr createGrid(int32_t _lineCount, + const vec3& _position=vec3(0,0,0), + float _size=1.0f, + const std::string& _materialName="basics"); + static std::shared_ptr createCube(float _size=1.0f, + const std::string& _materialName="basics", + const etk::Color& _color=etk::color::white); public: /** * @not_in_doc