diff --git a/saco/d3d9/common/DXUTmisc.cpp b/saco/d3d9/common/DXUTmisc.cpp index a1f41b7..1aa9151 100644 --- a/saco/d3d9/common/DXUTmisc.cpp +++ b/saco/d3d9/common/DXUTmisc.cpp @@ -9,6 +9,17 @@ #undef min // use __min instead #undef max // use __max instead +//-------------------------------------------------------------------------------------- +// Global/Static Members +//-------------------------------------------------------------------------------------- +CDXUTTimer* DXUTGetGlobalTimer() +{ + // Using an accessor function gives control of the construction order + static CDXUTTimer timer; + return &timer; +} + + //-------------------------------------------------------------------------------------- CDXUTTimer::CDXUTTimer() {