Speed up colorkey texture generation.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2376 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2009-05-08 07:20:51 +00:00
parent c655934954
commit bff880b4b5
1 changed files with 2 additions and 2 deletions

View File

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