summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-06 10:00:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-06 10:00:49 +0200
commit3b53f052915e77356ff4832b1db3b729a0fba765 (patch)
tree8598887098d32e8993e3321bc5dfc136ef9cb092 /shaders
parent89acc4653fe7ea3a76dd49711b3ac6b704ed509d (diff)
a
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile-shader.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/shaders/tile-shader.cpp b/shaders/tile-shader.cpp
index 835f94a0..733cdd8b 100644
--- a/shaders/tile-shader.cpp
+++ b/shaders/tile-shader.cpp
@@ -18,17 +18,9 @@ tile_shader::tile_shader()
vert.addSource(loader.shader("shaders/tile-shader.vert"));
frag.addSource(loader.shader("shaders/tile-shader.frag"));
-
-#ifdef __clang__
-# pragma clang diagnostic push
-# pragma clang diagnostic ignored "-Wdeprecated-declarations"
-#endif
- CORRADE_INTERNAL_ASSERT_OUTPUT(GL::Shader::compile({vert, frag}));
-#ifdef __clang__
-# pragma clang diagnostic pop
-#endif
+ CORRADE_INTERNAL_ASSERT_OUTPUT(vert.compile());
+ CORRADE_INTERNAL_ASSERT_OUTPUT(frag.compile());
attachShaders({vert, frag});
-
CORRADE_INTERNAL_ASSERT_OUTPUT(link());
set_scale({640, 480});