Commit bff880b4 authored by hybrid's avatar hybrid

Speed up colorkey texture generation.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2376 dfc29bdd-3216-0410-991c-e03cc46cb475
parent c6559349
...@@ -1024,7 +1024,7 @@ void CNullDriver::makeColorKeyTexture(video::ITexture* texture, ...@@ -1024,7 +1024,7 @@ void CNullDriver::makeColorKeyTexture(video::ITexture* texture,
if (texture->getColorFormat() == ECF_A1R5G5B5) if (texture->getColorFormat() == ECF_A1R5G5B5)
{ {
u16 *p = (u16*)texture->lock(); u16 *p = (u16*)texture->lock(true);
if (!p) if (!p)
{ {
...@@ -1040,7 +1040,7 @@ void CNullDriver::makeColorKeyTexture(video::ITexture* texture, ...@@ -1040,7 +1040,7 @@ void CNullDriver::makeColorKeyTexture(video::ITexture* texture,
} }
else else
{ {
u32 *p = (u32*)texture->lock(); u32 *p = (u32*)texture->lock(true);
if (!p) if (!p)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment