mirror of
https://github.com/overte-org/overte.git
synced 2025-08-14 18:30:40 +02:00
Avoiding warnings maybe
This commit is contained in:
parent
429a7cf58a
commit
8476939ba9
2 changed files with 3 additions and 3 deletions
|
@ -126,7 +126,7 @@ uint32_t LightClusters::getNumClusters() const {
|
|||
}
|
||||
_clusterResourcesInvalid = false;
|
||||
auto numClusters = getNumClusters();
|
||||
if (numClusters != _clusterGrid.size()) {
|
||||
if (numClusters != (uint32_t) _clusterGrid.size()) {
|
||||
_clusterGrid.clear();
|
||||
_clusterGrid.resize(numClusters, EMPTY_CLUSTER);
|
||||
_clusterGridBuffer._size = (numClusters * sizeof(uint32_t));
|
||||
|
@ -139,7 +139,7 @@ uint32_t LightClusters::getNumClusters() const {
|
|||
configListBudget *= 2;
|
||||
}
|
||||
|
||||
if (configListBudget != _clusterContent.size()) {
|
||||
if (configListBudget != (uint32_t) _clusterContent.size()) {
|
||||
_clusterContent.clear();
|
||||
_clusterContent.resize(configListBudget, INVALID_LIGHT);
|
||||
_clusterContentBuffer._size = (configListBudget * sizeof(LightIndex));
|
||||
|
|
|
@ -102,7 +102,7 @@ public:
|
|||
std::vector<LightIndex> _clusterContent;
|
||||
gpu::BufferView _clusterGridBuffer;
|
||||
gpu::BufferView _clusterContentBuffer;
|
||||
int32_t _clusterContentBudget { 0 };
|
||||
uint32_t _clusterContentBudget { 0 };
|
||||
|
||||
bool _clusterResourcesInvalid { true };
|
||||
void updateClusterResource();
|
||||
|
|
Loading…
Reference in a new issue