- attempt to further stabilize g3d viewer end map editor

This commit is contained in:
SoftCoder
2014-11-29 17:44:22 -08:00
parent 956671f018
commit c21317a5f4
3 changed files with 12 additions and 8 deletions

View File

@@ -575,7 +575,7 @@ void MainWindow::init() {
#elif wxCHECK_VERSION(2, 9, 1) #elif wxCHECK_VERSION(2, 9, 1)
#else #else
//glCanvas->SetCurrent(); glCanvas->SetCurrent();
//printf("setcurrent #2\n"); //printf("setcurrent #2\n");
#endif #endif
@@ -593,7 +593,7 @@ void MainWindow::onPaint(wxPaintEvent &event) {
#elif wxCHECK_VERSION(2, 9, 3) #elif wxCHECK_VERSION(2, 9, 3)
#elif wxCHECK_VERSION(2, 9, 1) #elif wxCHECK_VERSION(2, 9, 1)
//glCanvas->setCurrentGLContext(); glCanvas->setCurrentGLContext();
#endif #endif
if(startupSettingsInited == false) { if(startupSettingsInited == false) {

View File

@@ -644,11 +644,11 @@ void MainWindow::onPaint(wxPaintEvent &event) {
// glCanvas->setCurrentGLContext(); // glCanvas->setCurrentGLContext();
//#endif //#endif
static bool contextSet = false; //static bool contextSet = false;
if(contextSet == false) { //if(contextSet == false) {
contextSet = true; // contextSet = true;
glCanvas->setCurrentGLContext(); glCanvas->setCurrentGLContext();
} //}
if(lastPaintEvent.getMillis() < 30) { if(lastPaintEvent.getMillis() < 30) {
sleep(1); sleep(1);
@@ -1585,6 +1585,10 @@ bool App::OnInit() {
SystemFlags::VERBOSE_MODE_ENABLED = false; SystemFlags::VERBOSE_MODE_ENABLED = false;
SystemFlags::ENABLE_THREADED_LOGGING = 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; string fileparam;
if(argc==2){ if(argc==2){
if(argv[1][0]=='-') { // any flag gives help and exits program. if(argv[1][0]=='-') { // any flag gives help and exits program.