Commit a57f7ae8 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Fix OpenGL canvas freeze under Windows.

parent aad359fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ void OPENGL_GAL::BeginDrawing()
{
    SetCurrent( *glContext );

    clientDC = new wxPaintDC( this );
    clientDC = new wxClientDC( this );

    // Initialize GLEW, FBOs & VBOs
    if( !isGlewInitialized )
+1 −1
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ private:
    static const int    CIRCLE_POINTS   = 64;   ///< The number of points for circle approximation
    static const int    CURVE_POINTS    = 32;   ///< The number of points for curve approximation

    wxPaintDC*              clientDC;               ///< Drawing context
    wxClientDC*             clientDC;               ///< Drawing context
    static wxGLContext*     glContext;              ///< OpenGL context of wxWidgets
    wxWindow*               parentWindow;           ///< Parent window
    wxEvtHandler*           mouseListener;