Skip to content

Commit

Permalink
fixed multithreading OpenGL issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Feb 22, 2024
1 parent e6ea755 commit 5a5bb42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions display/glDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ glDisplay* glDisplay::Create( const videoOptions& options )
return NULL;
}

// release the GL context in case a different thread is used for rendering
GL(glXMakeCurrent(vp->mDisplayX, None, NULL));

vp->mID = gDisplays.size();
gDisplays.push_back(vp);

Expand Down

0 comments on commit 5a5bb42

Please sign in to comment.