Fixed a bad log
This commit is contained in:
parent
4d7754ac77
commit
b9a26bfe5a
1 changed files with 2 additions and 2 deletions
|
@ -235,12 +235,12 @@ void Renderer::ImguiNewFrame() {
|
||||||
ImGui_ImplSdlGL3_NewFrame(window);
|
ImGui_ImplSdlGL3_NewFrame(window);
|
||||||
}
|
}
|
||||||
Texture * Renderer::LoadTexture(std::string path) {
|
Texture * Renderer::LoadTexture(std::string path) {
|
||||||
SDL_Log("Loading texture: %s\n", path);
|
|
||||||
auto it = textures.find(path);
|
auto it = textures.find(path);
|
||||||
if (it == textures.end()) {
|
if (it == textures.end()) {
|
||||||
|
SDL_Log("Loading texture: %s\n", path.c_str());
|
||||||
// Texture not loaded, let's load it.
|
// Texture not loaded, let's load it.
|
||||||
SDL_Surface* surface = SDL_LoadBMP(path.c_str());
|
SDL_Surface* surface = SDL_LoadBMP(path.c_str());
|
||||||
if (surface != NULL) {
|
if (surface != NULL) {
|
||||||
GLuint textureId;
|
GLuint textureId;
|
||||||
glGenTextures(1, &textureId);
|
glGenTextures(1, &textureId);
|
||||||
glBindTexture(GL_TEXTURE_2D, textureId);
|
glBindTexture(GL_TEXTURE_2D, textureId);
|
||||||
|
|
Loading…
Reference in a new issue