summaryrefslogtreecommitdiffhomepage
path: root/tile-shader.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-02-19 21:40:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-02-19 21:40:17 +0100
commitb8aa39d289c605b13bb550b786cba3f646fa5b48 (patch)
treebf74772e84b9d48474298a7cae96698a4c3193ae /tile-shader.cpp
parent241d6bf6f4414cb5238d0193014b653a50e0fe64 (diff)
flush
Diffstat (limited to 'tile-shader.cpp')
-rw-r--r--tile-shader.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tile-shader.cpp b/tile-shader.cpp
index cff3d7f6..3477a00c 100644
--- a/tile-shader.cpp
+++ b/tile-shader.cpp
@@ -1,4 +1,5 @@
#include "tile-shader.hpp"
+#include "loader.hpp"
#include <Corrade/Containers/Reference.h>
#include <Corrade/Utility/Resource.h>
@@ -12,13 +13,11 @@ tile_shader::tile_shader()
{
MAGNUM_ASSERT_GL_VERSION_SUPPORTED(GL::Version::GL460);
- const Utility::Resource rs{"texturedquad-data"};
-
GL::Shader vert{GL::Version::GL460, GL::Shader::Type::Vertex};
GL::Shader frag{GL::Version::GL460, GL::Shader::Type::Fragment};
- vert.addSource(rs.get("shaders/tile-shader.vert"));
- frag.addSource(rs.get("shaders/tile-shader.frag"));
+ vert.addSource(loader.shader("shaders/tile-shader.vert"));
+ frag.addSource(loader.shader("shaders/tile-shader.frag"));
CORRADE_INTERNAL_ASSERT_OUTPUT(GL::Shader::compile({vert, frag}));