Skip to content
Snippets Groups Projects
Commit 90622117 authored by Tim Biedert's avatar Tim Biedert
Browse files

Catch VisRTX OpenGL interop exceptions on Optimus setups

parent 8dedcc62
No related branches found
No related tags found
No related merge requests found
......@@ -64,12 +64,26 @@ namespace RTW
int GetColorTextureGL()
{
return this->frameBuffer->GetColorTextureGL();
try
{
return this->frameBuffer->GetColorTextureGL();
}
catch(const VisRTX::Exception& e)
{
return 0;
}
}
int GetDepthtextureGL()
int GetDepthTextureGL()
{
return this->frameBuffer->GetDepthTextureGL();
try
{
return this->frameBuffer->GetDepthTextureGL();
}
catch(const VisRTX::Exception& e)
{
return 0;
}
}
private:
......
......@@ -296,6 +296,6 @@ namespace RTW
if (!frameBuffer)
return 0;
return reinterpret_cast<FrameBuffer*>(frameBuffer)->GetDepthtextureGL();
return reinterpret_cast<FrameBuffer*>(frameBuffer)->GetDepthTextureGL();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment