diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 08:10:44 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 08:10:44 +0200 |
| commit | ffe92653a7ec4138aa39d38fe8c68d0f0682f062 (patch) | |
| tree | 6e926620a7bed5f68daa65b00e5d70977b94ecda /wall-mesh.cpp | |
| parent | 66ee29df9c19e35b4c126e12e48bc144fe72eb22 (diff) | |
a
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++) { |
