mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Small windows GL tweak.
This commit is contained in:
parent
0abd7a3fa1
commit
aacb92a33a
1 changed files with 2 additions and 5 deletions
|
|
@ -42,14 +42,9 @@ public:
|
|||
nativeContext = new NativeContext (component, pixFormat, contextToShare);
|
||||
|
||||
if (nativeContext->createdOk())
|
||||
{
|
||||
nativeContext->setSwapInterval (1);
|
||||
context.nativeContext = nativeContext;
|
||||
}
|
||||
else
|
||||
{
|
||||
nativeContext = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
~CachedImage()
|
||||
|
|
@ -292,6 +287,8 @@ public:
|
|||
}
|
||||
|
||||
nativeContext->makeActive();
|
||||
nativeContext->setSwapInterval (1);
|
||||
|
||||
initialiseOnThread();
|
||||
|
||||
#if JUCE_USE_OPENGL_SHADERS && ! JUCE_OPENGL_ES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue