@@ -1106,6 +1106,7 @@ typedef struct rlglData {
1106
1106
bool texAnisoFilter ; // Anisotropic texture filtering support (GL_EXT_texture_filter_anisotropic)
1107
1107
bool computeShader ; // Compute shaders support (GL_ARB_compute_shader)
1108
1108
bool ssbo ; // Shader storage buffer object support (GL_ARB_shader_storage_buffer_object)
1109
+ bool debug_output ;
1109
1110
1110
1111
float maxAnisotropyLevel ; // Maximum anisotropy level supported (minimum is 2.0f)
1111
1112
int maxDepthBits ; // Maximum bits for depth component
@@ -2178,7 +2179,7 @@ void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int g
2178
2179
//----------------------------------------------------------------------------------
2179
2180
// Module Functions Definition - OpenGL Debug
2180
2181
//----------------------------------------------------------------------------------
2181
- #if defined(RLGL_ENABLE_OPENGL_DEBUG_CONTEXT ) // && defined(GRAPHICS_API_OPENGL_43)
2182
+ #if defined(RLGL_ENABLE_OPENGL_DEBUG_CONTEXT ) && defined(GRAPHICS_API_OPENGL_43 )
2182
2183
static void GLAPIENTRY rlDebugMessageCallback (GLenum source , GLenum type , GLuint id , GLenum severity , GLsizei length , const GLchar * message , const void * userParam )
2183
2184
{
2184
2185
// Ignore non-significant error/warning codes (NVidia drivers)
@@ -2394,6 +2395,7 @@ void rlLoadExtensions(void *loader)
2394
2395
RLGL .ExtSupported .texCompASTC = GLAD_GL_KHR_texture_compression_astc_hdr && GLAD_GL_KHR_texture_compression_astc_ldr ;
2395
2396
RLGL .ExtSupported .texCompDXT = GLAD_GL_EXT_texture_compression_s3tc ; // Texture compression: DXT
2396
2397
RLGL .ExtSupported .texCompETC2 = GLAD_GL_ARB_ES3_compatibility ; // Texture compression: ETC2/EAC
2398
+ RLGL .ExtSupported .debug_output = GLAD_GL_ARB_debug_output ;
2397
2399
#if defined(GRAPHICS_API_OPENGL_43 )
2398
2400
RLGL .ExtSupported .computeShader = GLAD_GL_ARB_compute_shader ;
2399
2401
RLGL .ExtSupported .ssbo = GLAD_GL_ARB_shader_storage_buffer_object ;
0 commit comments