From ffe92653a7ec4138aa39d38fe8c68d0f0682f062 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 6 Oct 2022 08:10:44 +0200 Subject: a --- wall-mesh.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wall-mesh.cpp') 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 #include 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++) { -- cgit v1.2.3