From 15a10a78ccaabec3c1b064910897398df9e5bd98 Mon Sep 17 00:00:00 2001 From: Jeff Hutchinson Date: Thu, 24 Nov 2016 12:35:39 -0500 Subject: [PATCH] suppress API_ID_REDUNDANT_FBO on the debug callbacks. This is a temporary fix so that glad can get pushed into devhead. --- Engine/source/gfx/gl/gfxGLDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Engine/source/gfx/gl/gfxGLDevice.cpp b/Engine/source/gfx/gl/gfxGLDevice.cpp index 3059809e9..7723cdc4a 100644 --- a/Engine/source/gfx/gl/gfxGLDevice.cpp +++ b/Engine/source/gfx/gl/gfxGLDevice.cpp @@ -84,6 +84,10 @@ void loadGLExtensions(void *context) void STDCALL glDebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam) { + // JTH [11/24/2016]: This is a temporary fix so that we do not get spammed for redundant fbo changes. + // This only happens on Intel cards. This should be looked into sometime in the near future. + if (dStrStartsWith(message, "API_ID_REDUNDANT_FBO")) + return; if (severity == GL_DEBUG_SEVERITY_HIGH) Con::errorf("OPENGL: %s", message); else if (severity == GL_DEBUG_SEVERITY_MEDIUM)