We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8951d41 commit 857786cCopy full SHA for 857786c
1 file changed
src/include/sndx/render/gl/shader.hpp
@@ -76,13 +76,13 @@ namespace sndx::render {
76
}
77
78
79
- protected:
80
void destroy() {
81
if (m_id != 0) {
82
glDeleteShader(std::exchange(m_id, 0));
83
84
85
+ protected:
86
// returns a error message on error. Empty optional otherwise.
87
[[nodiscard]]
88
std::optional<std::string> checkErr() {
0 commit comments