mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
one more comment from review
This commit is contained in:
parent
f2f092e9c8
commit
2bc8191fa6
2 changed files with 5 additions and 2 deletions
|
@ -320,6 +320,7 @@ public:
|
|||
void do_setStateColorWriteMask(uint32 mask);
|
||||
|
||||
protected:
|
||||
static const size_t INVALID_OFFSET = (size_t)-1;
|
||||
|
||||
bool _inRenderTransferPass;
|
||||
|
||||
|
@ -435,7 +436,7 @@ protected:
|
|||
using List = std::list<Pair>;
|
||||
List _cameraOffsets;
|
||||
mutable List::const_iterator _camerasItr;
|
||||
mutable size_t _currentCameraOffset;
|
||||
mutable size_t _currentCameraOffset{ INVALID_OFFSET };
|
||||
|
||||
void preUpdate(size_t commandIndex, const StereoState& stereo);
|
||||
void update(size_t commandIndex, const StereoState& stereo) const;
|
||||
|
|
|
@ -171,8 +171,10 @@ void GLBackend::TransformStageState::transfer(const Batch& batch) const {
|
|||
#endif
|
||||
|
||||
CHECK_GL_ERROR();
|
||||
|
||||
// Make sure the current Camera offset is unknown before render Draw
|
||||
_currentCameraOffset = INVALID_OFFSET;
|
||||
}
|
||||
static const size_t INVALID_OFFSET = (size_t)-1;
|
||||
|
||||
void GLBackend::TransformStageState::update(size_t commandIndex, const StereoState& stereo) const {
|
||||
size_t offset = INVALID_OFFSET;
|
||||
|
|
Loading…
Reference in a new issue