From b8bbc54c5c920aff1ff1b45a693f50d6d96d61c8 Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 15:45:26 +0500 Subject: Revise style: split include groups --- game/client/world/voxel_atlas.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'game/client/world/voxel_atlas.cc') diff --git a/game/client/world/voxel_atlas.cc b/game/client/world/voxel_atlas.cc index 1018747..512a06a 100644 --- a/game/client/world/voxel_atlas.cc +++ b/game/client/world/voxel_atlas.cc @@ -4,6 +4,7 @@ #include "core/math/constexpr.hh" #include "core/math/crc64.hh" + #include "core/resource/image.hh" #include "core/resource/resource.hh" @@ -71,8 +72,8 @@ static world::AtlasStrip* plane_new_strip(AtlasPlane& plane, const std::vectorsize.x, image->size.y, 1, GL_RGBA, GL_UNSIGNED_BYTE, image->pixels); + glTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, offset, image->size.x, image->size.y, 1, GL_RGBA, GL_UNSIGNED_BYTE, + image->pixels); } } -- cgit