mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Don't try to create an OpenGL 5.0 context ...
This commit is contained in:
parent
bf59190a7c
commit
f97bfe3eb4
1 changed files with 3 additions and 3 deletions
|
@ -353,8 +353,8 @@ static HGLRC CreateOpenGLContextOnDC( const HDC hdc, const bool debugContext )
|
|||
|
||||
for( int i = 0; i < 2; i++ )
|
||||
{
|
||||
const int glMajorVersion = ( useCoreProfile != 0 ) ? 4 : 5;
|
||||
const int glMinorVersion = ( useCoreProfile != 0 ) ? 4 : 0;
|
||||
const int glMajorVersion = ( useCoreProfile != 0 ) ? 4 : 4;
|
||||
const int glMinorVersion = ( useCoreProfile != 0 ) ? 5 : 3;
|
||||
const int glDebugFlag = debugContext ? WGL_CONTEXT_DEBUG_BIT_ARB : 0;
|
||||
const int glProfileMask = ( useCoreProfile != 0 ) ? WGL_CONTEXT_PROFILE_MASK_ARB : 0;
|
||||
const int glProfile = ( useCoreProfile == 1 ) ? WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB : ( ( useCoreProfile == 2 ) ? WGL_CONTEXT_CORE_PROFILE_BIT_ARB : 0 );
|
||||
|
@ -389,7 +389,7 @@ static HGLRC CreateOpenGLContextOnDC( const HDC hdc, const bool debugContext )
|
|||
}
|
||||
|
||||
idLib::Printf( "failed to create OpenGL %d.%d context\n", glMajorVersion, glMinorVersion );
|
||||
useCoreProfile = 0; // fall back to OpenGL 2.0
|
||||
useCoreProfile = 0; // fall back to OpenGL 4.3
|
||||
}
|
||||
|
||||
if( m_hrc == NULL )
|
||||
|
|
Loading…
Reference in a new issue