mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Avoided an unnecessary call in win32 openGL that may have been causing problems with some Nvidea drivers.
This commit is contained in:
parent
da5b67bd03
commit
e7e2abbb5c
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ public:
|
|||
void shutdownOnRenderThread() { deactivateCurrentContext(); }
|
||||
|
||||
static void deactivateCurrentContext() { wglMakeCurrent (0, 0); }
|
||||
bool makeActive() const noexcept { return wglMakeCurrent (dc, renderContext) != FALSE; }
|
||||
bool makeActive() const noexcept { return isActive() || wglMakeCurrent (dc, renderContext) != FALSE; }
|
||||
bool isActive() const noexcept { return wglGetCurrentContext() == renderContext; }
|
||||
void swapBuffers() const noexcept { SwapBuffers (dc); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue