Fix change to new lock mode.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3599 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
ed5344f5e8
commit
ad3572a10c
|
@ -251,7 +251,7 @@ void* CD3D8Texture::lock(E_TEXTURE_LOCK_MODE mode, u32 mipmapLevel)
|
|||
os::Printer::log("Could not lock DIRECT3D8 Texture.", "Data copy failed.", ELL_ERROR);
|
||||
return 0;
|
||||
}
|
||||
hr = RTTSurface->LockRect(&rect, 0, readOnly?D3DLOCK_READONLY:0);
|
||||
hr = RTTSurface->LockRect(&rect, 0, (mode==ETLM_READ_ONLY)?D3DLOCK_READONLY:0);
|
||||
if(FAILED(hr))
|
||||
{
|
||||
os::Printer::log("Could not lock DIRECT3D8 Texture.", "LockRect failed.", ELL_ERROR);
|
||||
|
|
Loading…
Reference in New Issue