From WojciechLewandowski, Added DispaySettings::SwapMethod and support for it in GraphicsContext::Traits

This commit is contained in:
Robert Osfield
2010-09-30 14:25:27 +00:00
parent ff68236bad
commit 0eded3efbe
4 changed files with 61 additions and 1 deletions

View File

@@ -185,7 +185,8 @@ GraphicsContext::Traits::Traits(DisplaySettings* ds):
glContextProfileMask(0),
sharedContext(0),
setInheritedWindowPixelFormat(false),
overrideRedirect(false)
overrideRedirect(false),
swapMethod( DisplaySettings::SWAP_DEFAULT )
{
if (ds)
{
@@ -208,6 +209,8 @@ GraphicsContext::Traits::Traits(DisplaySettings* ds):
glContextVersion = ds->getGLContextVersion();
glContextFlags = ds->getGLContextFlags();
glContextProfileMask = ds->getGLContextProfileMask();
swapMethod = ds->getSwapMethod();
}
}