GAL is not activated by default. Late OpenGL backend initializatization.

This commit is contained in:
Maciej Suminski 2013-10-28 16:51:56 +01:00
parent bd03ca1fce
commit c7bc1e151c
2 changed files with 4 additions and 5 deletions

View File

@ -52,11 +52,10 @@ OPENGL_GAL::OPENGL_GAL( wxWindow* aParent, wxEvtHandler* aMouseListener,
nonCachedManager( false ),
overlayManager( false )
{
// Create the OpenGL-Context
glContext = new wxGLContext( this );
parentWindow = aParent;
mouseListener = aMouseListener;
paintListener = aPaintListener;
glContext = NULL;
// Initialize the flags
isGlewInitialized = false;
@ -113,6 +112,9 @@ OPENGL_GAL::~OPENGL_GAL()
void OPENGL_GAL::BeginDrawing()
{
if( !glContext )
glContext = new wxGLContext( this );
SetCurrent( *glContext );
clientDC = new wxClientDC( this );

View File

@ -293,9 +293,6 @@ bool EDA_APP::OnInit()
frame->SetFocus();
frame->GetCanvas()->SetFocus();
// Activate the GAL
frame->UseGalCanvas( true );
return true;
}