mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-10 23:11:30 +02:00
Less warning
This commit is contained in:
parent
7dc99e86b9
commit
93aec28c7b
2 changed files with 3 additions and 1 deletions
|
@ -710,6 +710,8 @@ void RenderDeferred::configure(const Config& config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderDeferred::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const Inputs& inputs) {
|
void RenderDeferred::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const Inputs& inputs) {
|
||||||
|
PROFILE_RANGE("DeferredLighting");
|
||||||
|
|
||||||
auto deferredTransform = inputs.get0();
|
auto deferredTransform = inputs.get0();
|
||||||
auto deferredFramebuffer = inputs.get1();
|
auto deferredFramebuffer = inputs.get1();
|
||||||
auto lightingModel = inputs.get2();
|
auto lightingModel = inputs.get2();
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace indexed_elements {
|
||||||
Index _nextNewIndex { 0 };
|
Index _nextNewIndex { 0 };
|
||||||
|
|
||||||
bool checkIndex(Index index) const { return ((index >= 0) && (index < _nextNewIndex)); }
|
bool checkIndex(Index index) const { return ((index >= 0) && (index < _nextNewIndex)); }
|
||||||
Index getNumIndices() const { return _nextNewIndex - _freeIndices.size(); }
|
Index getNumIndices() const { return _nextNewIndex - (Index) _freeIndices.size(); }
|
||||||
|
|
||||||
Index allocateIndex() {
|
Index allocateIndex() {
|
||||||
if (_freeIndices.empty()) {
|
if (_freeIndices.empty()) {
|
||||||
|
|
Loading…
Reference in a new issue