diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-12 15:30:12 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-12 15:30:12 +0000 |
commit | 7ee8aee5add8d0c5b1a9e912a7043b2da4bb7453 (patch) | |
tree | f6e43da9e61c507bb774c488714d4a2bf1d58a9a /gfx/gl/shader-source.h | |
parent | glm::value_ptr is neater (diff) | |
download | ilt-7ee8aee5add8d0c5b1a9e912a7043b2da4bb7453.tar.bz2 ilt-7ee8aee5add8d0c5b1a9e912a7043b2da4bb7453.tar.xz ilt-7ee8aee5add8d0c5b1a9e912a7043b2da4bb7453.zip |
Move generic constexpr_strlen to lib
Diffstat (limited to 'gfx/gl/shader-source.h')
-rw-r--r-- | gfx/gl/shader-source.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gfx/gl/shader-source.h b/gfx/gl/shader-source.h index f22cc3b..524025c 100644 --- a/gfx/gl/shader-source.h +++ b/gfx/gl/shader-source.h @@ -14,14 +14,4 @@ struct GLsource { [[nodiscard]] ShaderRef compile() const; }; -constexpr auto -constexpr_strlen(const GLchar * const s) -{ - std::size_t ch {}; - while (s[ch]) { - ch++; - } - return ch; -} - #endif |