OpenGL: ignore deprecated API warnings

Reduces noise from --debug-gpu so we can spot serious errors.

Blender 2.7x uses OpenGL 2.1, we don't care if features are deprecated.

I'll re-enable these warnings for blender2.8 after next merge.
This commit is contained in:
2016-08-15 14:55:09 -04:00
parent 76b6c77f2c
commit c00b2d8991

View File

@@ -208,6 +208,11 @@ static void APIENTRY gpu_debug_proc(
GLenum severity, GLsizei UNUSED(length),
const GLchar *message, const GLvoid *UNUSED(userParm))
{
if (type == GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR) {
/* Blender 2.7x uses OpenGL 2.1, we don't care if features are deprecated */
return;
}
bool backtrace = false;
switch (severity) {
@@ -233,6 +238,11 @@ static void APIENTRY gpu_debug_proc_amd(
GLenum severity, GLsizei UNUSED(length),
const GLchar *message, GLvoid *UNUSED(userParm))
{
if (category == GL_DEBUG_CATEGORY_DEPRECATION_AMD) {
/* Blender 2.7x uses OpenGL 2.1, we don't care if features are deprecated */
return;
}
bool backtrace = false;
switch (severity) {