- Timestamp:
- 08/28/11 02:28:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp
r10095 r10118 491 491 // thread that is doing the draw calls, so disable it for this one. 492 492 wglMakeCurrent(NULL, NULL); 493 #elif defined(__WXGTK__) 494 // Need to make sure the canvas is realized by GTK, so that its context is valid 493 #elif defined(__WXGTK__) || defined(__WXOSX__) || defined(__WXMAC__) 494 // Need to make sure the canvas is realised, so that its context is valid 495 // this solves the "invalid drawable" error 495 496 Show(true); 497 #endif 498 #ifdef __WXGTK__ 499 // TODO: wxSafeYield causes issues on wxOSX 2.9, is it necessary? 496 500 wxSafeYield(); 497 501 #endif … … 524 528 525 529 #ifdef __WXGTK__ 530 // TODO: Is this necessary? 526 531 // HACK: because of how we fiddle with stuff earlier to make sure the canvas 527 532 // is displayed, the layout gets messed up, and it only seems to be fixable
Note:
See TracChangeset
for help on using the changeset viewer.
