| 163 | } |
| 164 | |
| 165 | void Canvas::_destroyTexture(bool _sendEvent) |
| 166 | { |
| 167 | if (mTexture != nullptr) |
| 168 | { |
| 169 | if (_sendEvent) |
| 170 | { |
| 171 | eventPreTextureChanges(this); |
| 172 | } |
| 173 | |
| 174 | RenderManager::getInstance().destroyTexture(mTexture); |
| 175 | mTexture = nullptr; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | void Canvas::correctUV() |
| 180 | { |
nothing calls this directly
no test coverage detected