mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't erase VendorCheck in unrelated function, resetting them to false
This commit is contained in:
@@ -28,8 +28,8 @@
|
||||
#include "serialise/string_utils.h"
|
||||
#include "gl_driver.h"
|
||||
|
||||
bool HasExt[GLExtension_Count];
|
||||
bool VendorCheck[VendorCheck_Count];
|
||||
bool HasExt[GLExtension_Count] = {};
|
||||
bool VendorCheck[VendorCheck_Count] = {};
|
||||
|
||||
int GLCoreVersion = 0;
|
||||
bool GLIsCore = false;
|
||||
@@ -375,7 +375,6 @@ void CheckExtensions(const GLHookSet &gl)
|
||||
gl.glGetIntegerv(eGL_NUM_EXTENSIONS, &numExts);
|
||||
|
||||
RDCEraseEl(HasExt);
|
||||
RDCEraseEl(VendorCheck);
|
||||
|
||||
if(gl.glGetString)
|
||||
{
|
||||
@@ -424,6 +423,8 @@ void DoVendorChecks(const GLHookSet &gl, GLPlatform &platform, GLWindowingData c
|
||||
// vertex buffer which is exactly what we wanted from GL_VERTEX_BINDING_BUFFER!
|
||||
// see: http://devgurus.amd.com/message/1306745#1306745
|
||||
|
||||
RDCEraseEl(VendorCheck);
|
||||
|
||||
if(gl.glGetError && gl.glGetIntegeri_v)
|
||||
{
|
||||
// clear all error flags.
|
||||
|
||||
Reference in New Issue
Block a user