Fixed bug with white map

I'm not sure when it was introduced, probably in 8f6fd2a131.
It was showing errors like "Couldn't load texture 'map.png'" and "Invalid texture data"
dev-ui
krzys-h 2013-06-08 17:51:31 +02:00
parent b22d852b4c
commit 18b27d258e
1 changed files with 1 additions and 1 deletions

View File

@ -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())
{