Fix compilation on very old mesa versions. vlj, please check.
This commit is contained in:
parent
0b0cf09dd6
commit
06915cc354
@ -121,9 +121,11 @@ CALLBACK
|
|||||||
debugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length,
|
debugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length,
|
||||||
const GLchar* msg, const void *userparam)
|
const GLchar* msg, const void *userparam)
|
||||||
{
|
{
|
||||||
|
#ifdef GL_DEBUG_SEVERITY_NOTIFICATION
|
||||||
// ignore minor notifications sent by some drivers (notably the nvidia one)
|
// ignore minor notifications sent by some drivers (notably the nvidia one)
|
||||||
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION)
|
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION)
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
switch(source)
|
switch(source)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user