summaryrefslogtreecommitdiff
path: root/gfx/gl
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-12 15:30:12 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-12 15:30:12 +0000
commit7ee8aee5add8d0c5b1a9e912a7043b2da4bb7453 (patch)
treef6e43da9e61c507bb774c488714d4a2bf1d58a9a /gfx/gl
parentglm::value_ptr is neater (diff)
downloadilt-7ee8aee5add8d0c5b1a9e912a7043b2da4bb7453.tar.bz2
ilt-7ee8aee5add8d0c5b1a9e912a7043b2da4bb7453.tar.xz
ilt-7ee8aee5add8d0c5b1a9e912a7043b2da4bb7453.zip
Move generic constexpr_strlen to lib
Diffstat (limited to 'gfx/gl')
-rw-r--r--gfx/gl/shader-source.h10
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