From b9a26bfe5a5450eca050b763182361af73b7abcf Mon Sep 17 00:00:00 2001 From: Adrian Hedqvist Date: Sun, 17 Sep 2017 22:16:23 +0200 Subject: [PATCH] Fixed a bad log --- src/Renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Renderer.cpp b/src/Renderer.cpp index 5fe58ca..81c3850 100644 --- a/src/Renderer.cpp +++ b/src/Renderer.cpp @@ -235,12 +235,12 @@ void Renderer::ImguiNewFrame() { ImGui_ImplSdlGL3_NewFrame(window); } Texture * Renderer::LoadTexture(std::string path) { - SDL_Log("Loading texture: %s\n", path); auto it = textures.find(path); if (it == textures.end()) { + SDL_Log("Loading texture: %s\n", path.c_str()); // Texture not loaded, let's load it. SDL_Surface* surface = SDL_LoadBMP(path.c_str()); - if (surface != NULL) { + if (surface != NULL) { GLuint textureId; glGenTextures(1, &textureId); glBindTexture(GL_TEXTURE_2D, textureId);