Skip to content

Commit

Permalink
Bugfix: Use new GLX provider (it was accidentally reverted to old) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kintel committed Mar 2, 2024
1 parent e96dd26 commit a27bd43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/glview/OffscreenView.cc
Expand Up @@ -52,13 +52,13 @@ OffscreenView::OffscreenView(uint32_t width, uint32_t height)
// FIXME: It's possible that GLEW was built using EGL, in which case this
// logic isn't correct, but we don't have a good way of determining how GLEW was built.
#if defined(USE_GLEW) || defined(OPENCSG_GLEW)
provider = !strcmp(provider, "egl") ? "glx-old" : provider;
provider = !strcmp(provider, "egl") ? "glx" : provider;
#endif
this->ctx = OffscreenContextFactory::create(provider, attrib);
if (!this->ctx) {
// If the provider defaulted to EGL, fall back to GLX if EGL failed
if (!strcmp(provider, "egl")) {
this->ctx = OffscreenContextFactory::create("glx-old", attrib);
this->ctx = OffscreenContextFactory::create("glx", attrib);
}
if (!this->ctx) {
throw OffscreenViewException("Unable to obtain GL Context");
Expand Down

0 comments on commit a27bd43

Please sign in to comment.