mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 23:45:14 +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)
|
#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) {
|
||||||
|
@@ -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.
|
||||||
|
Reference in New Issue
Block a user