summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-06-08 17:51:31 +0200
committerkrzys-h <krzys_h@interia.pl>2013-06-10 15:38:55 +0200
commit18b27d258efa59a08406c061190d8ea1d70f314c (patch)
tree99f690e311270c2714a91a8e2c94e7180c84fe66
parentb22d852b4c4aa89e0394397a703ecfa442b0a928 (diff)
downloadcolobot-18b27d258efa59a08406c061190d8ea1d70f314c.tar.gz
colobot-18b27d258efa59a08406c061190d8ea1d70f314c.tar.bz2
colobot-18b27d258efa59a08406c061190d8ea1d70f314c.zip
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"
-rw-r--r--src/graphics/engine/engine.cpp2
1 files changed, 1 insertions, 1 deletions
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())
{