Fix OSX Oculus issues

This commit is contained in:
Bradley Austin Davis 2016-08-07 19:56:26 -07:00 committed by Brad Davis
parent d548da02d9
commit f1fd8ac6e4
2 changed files with 5 additions and 3 deletions

View file

@ -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) {

View file

@ -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);