Fix OpenGL canvas freeze under Windows.

This commit is contained in:
Maciej Suminski 2014-07-20 21:14:42 +02:00
parent aad359fcf9
commit a57f7ae8cd
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ void OPENGL_GAL::BeginDrawing()
{ {
SetCurrent( *glContext ); SetCurrent( *glContext );
clientDC = new wxPaintDC( this ); clientDC = new wxClientDC( this );
// Initialize GLEW, FBOs & VBOs // Initialize GLEW, FBOs & VBOs
if( !isGlewInitialized ) if( !isGlewInitialized )

View File

@ -252,7 +252,7 @@ private:
static const int CIRCLE_POINTS = 64; ///< The number of points for circle approximation 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 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 static wxGLContext* glContext; ///< OpenGL context of wxWidgets
wxWindow* parentWindow; ///< Parent window wxWindow* parentWindow; ///< Parent window
wxEvtHandler* mouseListener; wxEvtHandler* mouseListener;