Change _DEBUG coverage a bit
This commit is contained in:
parent
fee0d9a8f3
commit
4aef1d00d1
@ -18,6 +18,7 @@
|
|||||||
#include <graphics/matrix3.h>
|
#include <graphics/matrix3.h>
|
||||||
#include "gl-subsystem.h"
|
#include "gl-subsystem.h"
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
/* Tables for OpenGL debug */
|
/* Tables for OpenGL debug */
|
||||||
static const char* debug_source_table[] = {
|
static const char* debug_source_table[] = {
|
||||||
"API",
|
"API",
|
||||||
@ -49,7 +50,6 @@ static const char* debug_severity_table[] = {
|
|||||||
#define GL_DEBUG_TYPE_OFFSET(x) (x - GL_DEBUG_TYPE_ERROR_ARB)
|
#define GL_DEBUG_TYPE_OFFSET(x) (x - GL_DEBUG_TYPE_ERROR_ARB)
|
||||||
#define GL_DEBUG_SEVERITY_OFFSET(x) (x - GL_DEBUG_SEVERITY_HIGH_ARB)
|
#define GL_DEBUG_SEVERITY_OFFSET(x) (x - GL_DEBUG_SEVERITY_HIGH_ARB)
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
static void gl_debug_proc(
|
static void gl_debug_proc(
|
||||||
GLenum source, GLenum type, GLuint id, GLenum severity,
|
GLenum source, GLenum type, GLuint id, GLenum severity,
|
||||||
GLsizei length, const GLchar *message, GLvoid *data )
|
GLsizei length, const GLchar *message, GLvoid *data )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user