| 102 | } |
| 103 | |
| 104 | void OgreTexture::unlock() |
| 105 | { |
| 106 | if (mTexture->getBuffer()->isLocked()) |
| 107 | { |
| 108 | mTexture->getBuffer()->unlock(); |
| 109 | } |
| 110 | else |
| 111 | { |
| 112 | delete[] (uint8*)mTmpData.data; |
| 113 | mTmpData.data = nullptr; |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | bool OgreTexture::isLocked() const |
| 118 | { |