From c9dd65900b5dfa4958cac3a79564fe074e5d47ba Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Wed, 14 Sep 2022 23:24:10 -0400 Subject: [PATCH] Remove useless comment, fix formatting, etc. --- src/gfx/renderer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gfx/renderer.cpp b/src/gfx/renderer.cpp index c64a87e..f5af14f 100644 --- a/src/gfx/renderer.cpp +++ b/src/gfx/renderer.cpp @@ -49,7 +49,7 @@ namespace simpleengine::gfx { } void Renderer::RenderingModel::destroy_buffers() { - std::cout << "Destroying buffers for entity!" << std::endl; + std::cout << "Destroying entity models..." << std::endl; // Iterate through all buffer lists and destroy each inner buffer. for (auto& pair : component_models) { @@ -69,9 +69,9 @@ namespace simpleengine::gfx { void debug_message_callback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam) { - fprintf( stderr, "%s type = 0x%x, severity = 0x%x, message = %s\n", - ( type == GL_DEBUG_TYPE_ERROR ? "** GL ERROR **" : "" ), - type, severity, message ); + fprintf(stderr, "%s type = 0x%x, severity = 0x%x, message = %s\n", + (type == GL_DEBUG_TYPE_ERROR ? "** GL ERROR **" : ""), + type, severity, message); } void Renderer::enable_debug() { @@ -131,7 +131,6 @@ namespace simpleengine::gfx { shader.set_uniform_int("u_textures", 0, false); if (material.has_value()) { - //Material& material = material shader.set_uniform_float("u_texture_shine", material->shine, false); shader.set_uniform_float("u_texture_reflectivity", material->reflectivity, false);