From 7e2b9d7e98629ea6ef23c7a4e49832e3cd4a6303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 9 Dec 2013 15:27:52 +0100 Subject: [PATCH] Slight logging improvement --- gfx/texture.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gfx/texture.cpp b/gfx/texture.cpp index e6b33380af..d848459d5a 100644 --- a/gfx/texture.cpp +++ b/gfx/texture.cpp @@ -36,14 +36,15 @@ void Texture::GLLost() { Load(filename_.c_str()); ILOG("Reloaded lost texture %s", filename_.c_str()); } else { - WLOG("Texture cannot be restored - has no filename"); + WLOG("Texture %p cannot be restored - has no filename", this); Destroy(); } } static void SetTextureParameters(int zim_flags) { GLenum wrap = GL_REPEAT; - if (zim_flags & ZIM_CLAMP) wrap = GL_CLAMP_TO_EDGE; + if (zim_flags & ZIM_CLAMP) + wrap = GL_CLAMP_TO_EDGE; glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrap); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrap); GL_CHECK(); @@ -59,8 +60,6 @@ static void SetTextureParameters(int zim_flags) { bool Texture::Load(const char *filename) { // hook for generated textures if (!memcmp(filename, "gen:", 4)) { - // TODO - // return false; int bpp, w, h; bool clamp; uint8_t *data = generateTexture(filename, bpp, w, h, clamp);