Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Dec 14, 2024
1 parent 675cffd commit fd875e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rts/Rendering/Models/ModelsMemStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ size_t ModelUniformsStorage::GetObjOffset(const CWorldObject* o)
return idx;
}

ModelUniformData& ModelUniformsStorage::GetObjUniformsArray(const CWorldObject* o)
ModelUniformsStorage::MyType& ModelUniformsStorage::GetObjUniformsArray(const CWorldObject* o)
{
RECOIL_DETAILED_TRACY_ZONE;
size_t offset = GetObjOffset(o);
Expand Down
11 changes: 2 additions & 9 deletions rts/Rendering/Models/ModelsMemStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,8 @@ class TransformsMemStorage : public StablePosAllocator<CMatrix44f> {
private:
std::vector<uint8_t> dirtyMap;
public:
const decltype(dirtyMap)& GetDirtyMap() const
{
return dirtyMap;
}
decltype(dirtyMap)& GetDirtyMap()
{
return dirtyMap;
}

const auto& GetDirtyMap() const { return dirtyMap; }
auto& GetDirtyMap() { return dirtyMap; }
void SetAllDirty();
public:
//need to update buffer with matrices BUFFERING times, because the actual buffer is made of BUFFERING number of parts
Expand Down

0 comments on commit fd875e0

Please sign in to comment.