Skip to content

Commit

Permalink
DisplayMode: Restore color transfer after possible mode switch
Browse files Browse the repository at this point in the history
Possibly makes a difference on some platforms.
  • Loading branch information
skyjake committed Apr 13, 2012
1 parent 3d2a2fd commit c206a95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doomsday/engine/portable/src/displaymode.cpp
Expand Up @@ -185,12 +185,13 @@ void DisplayMode_Shutdown(void)
// Back to the original mode.
DisplayMode_Change(&originalMode, false /*release captured*/);

DisplayMode_Native_SetColorTransfer(&originalColorTransfer);

modes.clear();

DisplayMode_Native_Shutdown();
captured = false;

DisplayMode_Native_SetColorTransfer(&originalColorTransfer);

inited = false;
}

Expand Down

0 comments on commit c206a95

Please sign in to comment.