From 18b27d258efa59a08406c061190d8ea1d70f314c Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 8 Jun 2013 17:51:31 +0200 Subject: Fixed bug with white map I'm not sure when it was introduced, probably in 8f6fd2a1316432970f1d86515819e7bbe15ddab3. It was showing errors like "Couldn't load texture 'map.png'" and "Invalid texture data" --- src/graphics/engine/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp index 4d0687a..785383a 100644 --- a/src/graphics/engine/engine.cpp +++ b/src/graphics/engine/engine.cpp @@ -2156,7 +2156,7 @@ Texture CEngine::CreateTexture(const std::string& texName, const TextureCreatePa image = &img; } - tex = m_device->CreateTexture(&img, params); + tex = m_device->CreateTexture(image, params); if (! tex.Valid()) { -- cgit v1.2.3-1-g7c22