| 52 | } |
| 53 | |
| 54 | void Lightmap::UpdateTexture(Texture* texture, int32 index) |
| 55 | { |
| 56 | auto& prev = _textures[index]; |
| 57 | if (prev.Get() != texture) |
| 58 | { |
| 59 | LOG(Info, "Changing lightmap {0} texture {1} from '{2}' to '{3}'", _index, index, prev ? prev->ToString() : String::Empty, texture ? texture->ToString() : String::Empty); |
| 60 | prev = texture; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | void Lightmap::EnsureSize(int32 size) |
| 65 | { |
no test coverage detected