mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
General code spring cleaning (#3525)
This commit is contained in:
@@ -1374,11 +1374,11 @@ void RenderablePointCloud::update(const UpdateData&) {
|
||||
_colorSettings.colorMapping->update(_dataset, _useCaching);
|
||||
}
|
||||
|
||||
if (_spriteTextureIsDirty) {
|
||||
if (_spriteTextureIsDirty) [[unlikely]] {
|
||||
updateSpriteTexture();
|
||||
}
|
||||
|
||||
if (_dataIsDirty) {
|
||||
if (_dataIsDirty) [[unlikely]] {
|
||||
updateBufferData();
|
||||
}
|
||||
}
|
||||
@@ -1511,9 +1511,8 @@ void RenderablePointCloud::updateBufferData() {
|
||||
}
|
||||
|
||||
void RenderablePointCloud::updateSpriteTexture() {
|
||||
bool shouldUpdate = _hasSpriteTexture && _spriteTextureIsDirty;
|
||||
|
||||
if (!shouldUpdate) {
|
||||
const bool shouldUpdate = _hasSpriteTexture && _spriteTextureIsDirty;
|
||||
if (!shouldUpdate) [[likely]] {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user