- bumped minimum supported OpenGL version to 1.4. The engine was already using several 1.3 and 1.4 features which would have caused problems on 1.2.

- removed gl_vid_compatibility. With the bump to 1.4 no hardware requiring this flag is supported anymore.
- disabled 16 bit framebuffers for the same reason. As a conseqence all code for rendering without stencil could also be removed.
This commit is contained in:
Christoph Oelckers 2013-08-18 15:41:52 +02:00
commit b61ef3a107
16 changed files with 343 additions and 486 deletions

View file

@ -73,6 +73,8 @@ CVAR(Bool, gl_aalines, false, CVAR_ARCHIVE)
FGLRenderer *GLRenderer;
void gl_SetupMenu();
void gl_LoadExtensions();
void gl_PrintStartupLog();
//==========================================================================
//
@ -115,14 +117,14 @@ void OpenGLFrameBuffer::InitializeState()
{
static bool first=true;
gl.LoadExtensions();
gl_LoadExtensions();
Super::InitializeState();
if (first)
{
first=false;
// [BB] For some reason this crashes, if compiled with MinGW and optimization. Has to be investigated.
#ifdef _MSC_VER
gl.PrintStartupLog();
gl_PrintStartupLog();
#endif
if (gl.flags&RFL_NPOT_TEXTURE)