mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-29 14:50:30 +02:00
CSoftwareTexture::lock no longer returns image data when a mipmapLevel is requested
Returns now getMipMapsData instead which for now will always be 0 in this case (but might work one day) Also removing comment about ITexture::lock() mipmapLevel parameter being broken. It got fixed in November 2019. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6563 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -78,7 +78,10 @@ CSoftwareTexture::~CSoftwareTexture()
|
||||
//! lock function
|
||||
void* CSoftwareTexture::lock(E_TEXTURE_LOCK_MODE mode, u32 mipmapLevel, u32 layer, E_TEXTURE_LOCK_FLAGS lockFlags)
|
||||
{
|
||||
return Image->getData();
|
||||
if ( mipmapLevel == 0 )
|
||||
return Image->getData();
|
||||
else
|
||||
return Image->getMipMapsData(mipmapLevel);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user