mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 00:48:58 +02:00
- bugfix for map editor hanging on some windows installations
This commit is contained in:
@@ -634,7 +634,9 @@ void MainWindow::onPaint(wxPaintEvent &event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxCHECK_VERSION(2, 9, 1)
|
#if wxCHECK_VERSION(2, 9, 3)
|
||||||
|
|
||||||
|
#elif wxCHECK_VERSION(2, 9, 1)
|
||||||
glCanvas->setCurrentGLContext();
|
glCanvas->setCurrentGLContext();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1445,6 +1447,13 @@ GlCanvas::~GlCanvas() {
|
|||||||
|
|
||||||
void GlCanvas::setCurrentGLContext() {
|
void GlCanvas::setCurrentGLContext() {
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
|
|
||||||
|
#if wxCHECK_VERSION(2, 9, 1)
|
||||||
|
if(this->context == NULL) {
|
||||||
|
this->context = new wxGLContext(this);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if(this->context) {
|
if(this->context) {
|
||||||
this->SetCurrent(*this->context);
|
this->SetCurrent(*this->context);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user