diff options
Diffstat (limited to 'wall-mesh.cpp')
| -rw-r--r-- | wall-mesh.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wall-mesh.cpp b/wall-mesh.cpp index a27d34af..ee998e63 100644 --- a/wall-mesh.cpp +++ b/wall-mesh.cpp @@ -2,6 +2,7 @@ #include "tile-atlas.hpp" #include "shaders/tile-shader.hpp" #include "chunk.hpp" +#include <Magnum/GL/RectangleTexture.h> #include <Magnum/GL/MeshView.h> namespace Magnum::Examples { @@ -53,7 +54,7 @@ void wall_mesh::draw(tile_shader& shader, chunk& c) _vertex_buffer.setSubData(0, Containers::arrayView(data.data(), pos)); } - const GL::Texture2D* last_texture = nullptr; + const GL::RectangleTexture* last_texture = nullptr; Magnum::GL::MeshView mesh{_mesh}; for (std::size_t i = 0; i < pos; i++) { |
