| 31 | #endif // /GL_KHR_debug |
| 32 | |
| 33 | void GLSetObjectLabel(GLenum identifier, GLuint name, const char* label) |
| 34 | { |
| 35 | #ifdef GL_KHR_debug |
| 36 | if (HasExtension(GLExt::KHR_debug)) |
| 37 | { |
| 38 | if (label != nullptr) |
| 39 | glObjectLabel(identifier, name, GetCroppedLength(label), label); |
| 40 | else |
| 41 | glObjectLabel(identifier, name, 0, nullptr); |
| 42 | } |
| 43 | #endif // /GL_KHR_debug |
| 44 | } |
| 45 | |
| 46 | void GLSetObjectLabelSubscript(GLenum identifier, GLuint name, const char* label, const char* subscript) |
| 47 | { |
no test coverage detected