Files
test/source/blender/gpu/opengl/gl_debug.hh
Miguel Pozo b43616513a OpenGL: Remove gl_debug_layer
It's broken and it's not needed anymore, since we require OpenGL 4.3.

Fix #142620

Note: Debug callbacks still won't work for compilation threads,
but that's relatively harmless and should cause no issues for the user.
This will be fixed in 5.0 with #142715.

(4.5 backport candidate)

Pull Request: https://projects.blender.org/blender/blender/pulls/142716
2025-07-31 16:36:08 +02:00

37 lines
700 B
C++

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup gpu
*/
#pragma once
#include "gl_context.hh"
#ifndef NDEBUG
# define GL_CHECK_RESOURCES(info) debug::check_gl_resources(info)
#else
# define GL_CHECK_RESOURCES(info)
#endif
namespace blender {
namespace gpu {
namespace debug {
void raise_gl_error(const char *info);
void check_gl_error(const char *info);
void check_gl_resources(const char *info);
/**
* This function needs to be called once per context.
*/
void init_gl_callbacks();
void object_label(GLenum type, GLuint object, const char *name);
} // namespace debug
} // namespace gpu
} // namespace blender