Browse Source

Small windows GL tweak.

tags/2021-05-28
jules 12 years ago
parent
commit
aacb92a33a
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp

+ 2
- 5
modules/juce_opengl/opengl/juce_OpenGLContext.cpp 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


Loading…
Cancel
Save