1
Feature requests / OpenGL Forward Compatible Context
« on: November 28, 2010, 06:29:38 pm »
Ah so you would go from 4.0 to something like 3.9? I guess that will also work, yes .
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
while (!myContext && (mySettings.MajorVersion >= 3))
{
//Try create context
// If we couldn't create an OpenGL 3 context, adjust the settings
if (!myContext)
{
if (mySettings.MinorVersion > 0)
{
// If the minor version is not 0, we decrease it and try again
mySettings.MinorVersion--;
}
else
{
// If the minor version is 0, we decrease the major version and stop with 3.x contexts
mySettings.MajorVersion = 2;
}
}
}