diff --git a/modules/juce_opengl/native/juce_OpenGL_win32.h b/modules/juce_opengl/native/juce_OpenGL_win32.h index 57473c2144..3e7fc2df4d 100644 --- a/modules/juce_opengl/native/juce_OpenGL_win32.h +++ b/modules/juce_opengl/native/juce_OpenGL_win32.h @@ -68,7 +68,7 @@ public: } if (contextToShareWith != nullptr) - wglShareLists (contextToShareWith, renderContext); + wglShareLists ((HGLRC) contextToShareWith, renderContext); component.getTopLevelComponent()->repaint(); component.repaint();