summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-11-17 21:26:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-11-17 21:26:57 +0100
commitd1bca7ebeb2fdd4707f0fd734fb27767660499ac (patch)
tree305d2347afd1990614694b4db7bd8c5d1884c615
parenta93a1c9c25a8ef2c8323507720db5712c2baa896 (diff)
shader: get rid of decltype(auto) retval
No functional changes.
-rw-r--r--shaders/shader.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/shader.hpp b/shaders/shader.hpp
index 7f58e276..5eb384c5 100644
--- a/shaders/shader.hpp
+++ b/shaders/shader.hpp
@@ -37,7 +37,7 @@ struct tile_shader final : private GL::AbstractShaderProgram
template<typename T = float> static constexpr Math::Vector2<T> project(const Math::Vector3<T>& pt);
template<typename T = float> static constexpr Math::Vector2<T> unproject(const Math::Vector2<T>& px);
- template<typename T, typename... Xs> decltype(auto) draw(GL::AbstractTexture& tex, T&& mesh, Xs&&... xs);
+ template<typename T, typename... Xs> GL::AbstractShaderProgram& draw(GL::AbstractTexture& tex, T&& mesh, Xs&&... xs);
static constexpr Vector2s max_screen_tiles = {8, 8};
static constexpr float character_depth_offset = 1 + 2./64;
@@ -74,7 +74,7 @@ private:
};
template<typename T, typename... Xs>
-decltype(auto) tile_shader::draw(GL::AbstractTexture& tex, T&& mesh, Xs&&... xs)
+GL::AbstractShaderProgram& tile_shader::draw(GL::AbstractTexture& tex, T&& mesh, Xs&&... xs)
{
draw_pre(tex);
decltype(auto) ret = GL::AbstractShaderProgram::draw(forward<T>(mesh), forward<Xs>(xs)...);