Fix OpenGL canvas freeze under Windows.
This commit is contained in:
parent
aad359fcf9
commit
a57f7ae8cd
|
@ -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 )
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue