Cleanup extension initialization

This commit is contained in:
kaetemi 2014-06-05 15:03:09 +02:00
parent 944058c61e
commit 5dc094df6e
2 changed files with 6 additions and 2 deletions

View file

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

View file

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