cmake build system + OS X support / cleanups for Humble Release #8

Merged
urkle merged 25 commits from OSX into boost 2014-01-01 23:13:17 +00:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit e87bdb8a95 - Show all commits

View File

@ -52,6 +52,10 @@ struct GLProperty
set(value);
}
void refresh()
{
apply(current);
}
private:
virtual void apply(const T &value) = 0;

View File

@ -469,7 +469,8 @@ struct GraphicsPrivate
{
if (threadData->windowSizeMsg.pollChange(&winSize.x, &winSize.y))
{
glState.viewport.init(IntRect(0, 0, winSize.x, winSize.y));
// some GL drivers change the viewport on window resize
glState.viewport.refresh();
recalculateScreenSize();
screen.setScreenSize(winSize.x, winSize.y);
updateScreenResoRatio();