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
parent
b22d852b4c
commit
18b27d258e
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue