This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10118 for ps


Ignore:
Timestamp:
08/28/11 02:28:06 (13 years ago)
Author:
ben
Message:

Fixes Atlas canvas on OS X (needs to be shown before setting GL context - fixes invalid drawable error).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp

    r10095 r10118  
    491491    // thread that is doing the draw calls, so disable it for this one.
    492492    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
    495496    Show(true);
     497#endif
     498#ifdef __WXGTK__
     499    // TODO: wxSafeYield causes issues on wxOSX 2.9, is it necessary?
    496500    wxSafeYield();
    497501#endif
     
    524528
    525529#ifdef __WXGTK__
     530    // TODO: Is this necessary?
    526531    // HACK: because of how we fiddle with stuff earlier to make sure the canvas
    527532    // is displayed, the layout gets messed up, and it only seems to be fixable
Note: See TracChangeset for help on using the changeset viewer.