diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 14:59:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 15:03:03 +0300 |
commit | 6b91c641e81ec2256b63e3dc8c0fe9d4e5dcf411 (patch) | |
tree | 02423eebd06fe2c1467dd461f2967e7b8fc64504 /source/blender/gpu/opengl/gl_debug.cc | |
parent | aa32e7a2f31486503edb430b15ce31a819e02702 (diff) |
GPU: Fix clang tidy warnings
Diffstat (limited to 'source/blender/gpu/opengl/gl_debug.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_debug.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/opengl/gl_debug.cc b/source/blender/gpu/opengl/gl_debug.cc index 5915b3ea226..d54ea0919b6 100644 --- a/source/blender/gpu/opengl/gl_debug.cc +++ b/source/blender/gpu/opengl/gl_debug.cc @@ -207,7 +207,7 @@ void check_gl_resources(const char *info) /* NOTE: This only check binding. To be valid, the bound texture needs to * be the same format/target the shader expects. */ uint64_t tex_needed = interface->enabled_tex_mask_; - tex_needed &= ~ctx->state_manager_active_get()->bound_texture_slots(); + tex_needed &= ~GLContext::state_manager_active_get()->bound_texture_slots(); if (ubo_needed == 0 && tex_needed == 0) { return; @@ -236,9 +236,9 @@ void check_gl_resources(const char *info) } } -void raise_gl_error(const char *msg) +void raise_gl_error(const char *info) { - debug_callback(0, GL_DEBUG_TYPE_ERROR, 0, GL_DEBUG_SEVERITY_HIGH, 0, msg, NULL); + debug_callback(0, GL_DEBUG_TYPE_ERROR, 0, GL_DEBUG_SEVERITY_HIGH, 0, info, NULL); } /** \} */ |