Returns the length of the specified label with a maximum length determined by GL_MAX_LABEL_LENGTH
| 21 | |
| 22 | // Returns the length of the specified label with a maximum length determined by GL_MAX_LABEL_LENGTH |
| 23 | static GLsizei GetCroppedLength(const char* label) |
| 24 | { |
| 25 | const GLint maxLength = GLStateManager::GetCommonLimits().maxLabelLength; |
| 26 | const std::size_t actualLength = std::strlen(label); |
| 27 | const std::size_t croppedLength = std::min(actualLength, static_cast<std::size_t>(maxLength)); |
| 28 | return static_cast<GLsizei>(croppedLength); |
| 29 | } |
| 30 | |
| 31 | #endif // /GL_KHR_debug |
| 32 |
no outgoing calls
no test coverage detected