1
0
Fork 0
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:
jules 2013-03-08 16:51:11 +00:00
parent 0abd7a3fa1
commit aacb92a33a

View file

@ -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