Cleanup extension initialization

This commit is contained in:
kaetemi 2014-06-05 15:03:09 +02:00
parent 766cace955
commit ad0bf64b18
2 changed files with 6 additions and 2 deletions

View file

@ -1711,10 +1711,13 @@ void registerGlExtensions(CGlExtensions &ext)
// ARB extensions
// -------------
if(!ext.DisableHardwareVertexArrayAGP)
if (!ext.DisableHardwareVertexArrayAGP)
{
ext.ARBVertexBufferObject = setupARBVertexBufferObject(glext);
ext.ARBMapBufferRange = setupARBMapBufferRange(glext);
if (ext.ARBVertexBufferObject)
{
ext.ARBMapBufferRange = setupARBMapBufferRange(glext);
}
}
// fix for radeon 7200 -> disable agp

View file

@ -168,6 +168,7 @@ public:
EXTVertexShader= false;
ARBFragmentProgram = false;
ARBVertexBufferObject = false;
ARBMapBufferRange = false;
ARBVertexProgram = false;
NVTextureRectangle = false;
EXTTextureRectangle = false;