mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 16:13:28 +02:00
Fix OSX Oculus issues
This commit is contained in:
parent
d548da02d9
commit
f1fd8ac6e4
2 changed files with 5 additions and 3 deletions
|
@ -730,7 +730,9 @@ gpu::gl::GLBackend* OpenGLDisplayPlugin::getGLBackend() {
|
|||
if (!_backend) {
|
||||
return nullptr;
|
||||
}
|
||||
return dynamic_cast<gpu::gl::GLBackend*>(_backend.get());
|
||||
auto backend = _backend.get();
|
||||
auto glbackend = static_cast<gpu::gl::GLBackend*>(backend);
|
||||
return glbackend;
|
||||
}
|
||||
|
||||
void OpenGLDisplayPlugin::render(std::function<void(gpu::Batch& batch)> f) {
|
||||
|
|
|
@ -130,8 +130,8 @@ public:
|
|||
mutable PageManager _renderPages;
|
||||
mutable Sysmem _renderSysmem;
|
||||
|
||||
mutable std::atomic<size_t> _getUpdateCount;
|
||||
mutable std::atomic<size_t> _applyUpdateCount;
|
||||
mutable std::atomic<size_t> _getUpdateCount { 0 };
|
||||
mutable std::atomic<size_t> _applyUpdateCount { 0 };
|
||||
//protected:
|
||||
public:
|
||||
void markDirty(Size offset, Size bytes);
|
||||
|
|
Loading…
Reference in a new issue