mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- attempt to further stabilize g3d viewer end map editor
This commit is contained in:
Submodule data/glest_game updated: 720a63bb34...f674bb7461
@@ -575,7 +575,7 @@ void MainWindow::init() {
|
||||
#elif wxCHECK_VERSION(2, 9, 1)
|
||||
|
||||
#else
|
||||
//glCanvas->SetCurrent();
|
||||
glCanvas->SetCurrent();
|
||||
//printf("setcurrent #2\n");
|
||||
#endif
|
||||
|
||||
@@ -593,7 +593,7 @@ void MainWindow::onPaint(wxPaintEvent &event) {
|
||||
#elif wxCHECK_VERSION(2, 9, 3)
|
||||
|
||||
#elif wxCHECK_VERSION(2, 9, 1)
|
||||
//glCanvas->setCurrentGLContext();
|
||||
glCanvas->setCurrentGLContext();
|
||||
#endif
|
||||
|
||||
if(startupSettingsInited == false) {
|
||||
|
@@ -644,11 +644,11 @@ void MainWindow::onPaint(wxPaintEvent &event) {
|
||||
// glCanvas->setCurrentGLContext();
|
||||
//#endif
|
||||
|
||||
static bool contextSet = false;
|
||||
if(contextSet == false) {
|
||||
contextSet = true;
|
||||
//static bool contextSet = false;
|
||||
//if(contextSet == false) {
|
||||
// contextSet = true;
|
||||
glCanvas->setCurrentGLContext();
|
||||
}
|
||||
//}
|
||||
|
||||
if(lastPaintEvent.getMillis() < 30) {
|
||||
sleep(1);
|
||||
@@ -1585,6 +1585,10 @@ bool App::OnInit() {
|
||||
SystemFlags::VERBOSE_MODE_ENABLED = false;
|
||||
SystemFlags::ENABLE_THREADED_LOGGING = false;
|
||||
|
||||
#if defined(wxMAJOR_VERSION) && defined(wxMINOR_VERSION) && defined(wxRELEASE_NUMBER) && defined(wxSUBRELEASE_NUMBER)
|
||||
printf("Using wxWidgets version [%d.%d.%d.%d]\n",wxMAJOR_VERSION,wxMINOR_VERSION,wxRELEASE_NUMBER,wxSUBRELEASE_NUMBER);
|
||||
#endif
|
||||
|
||||
string fileparam;
|
||||
if(argc==2){
|
||||
if(argv[1][0]=='-') { // any flag gives help and exits program.
|
||||
|
Reference in New Issue
Block a user