Speed up colorkey texture generation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2376 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
c655934954
commit
bff880b4b5
|
@ -1024,7 +1024,7 @@ void CNullDriver::makeColorKeyTexture(video::ITexture* texture,
|
|||
|
||||
if (texture->getColorFormat() == ECF_A1R5G5B5)
|
||||
{
|
||||
u16 *p = (u16*)texture->lock();
|
||||
u16 *p = (u16*)texture->lock(true);
|
||||
|
||||
if (!p)
|
||||
{
|
||||
|
@ -1040,7 +1040,7 @@ void CNullDriver::makeColorKeyTexture(video::ITexture* texture,
|
|||
}
|
||||
else
|
||||
{
|
||||
u32 *p = (u32*)texture->lock();
|
||||
u32 *p = (u32*)texture->lock(true);
|
||||
|
||||
if (!p)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue