From 00fc3cb9b2c06026fab0e4760609fe02e027b6df Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Mar 2026 16:02:56 +0000 Subject: Move all low level texture operations to DSA helpers in glTexture --- gfx/gl/shadowMapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx/gl/shadowMapper.h') diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h index 0d9763a..adae847 100644 --- a/gfx/gl/shadowMapper.h +++ b/gfx/gl/shadowMapper.h @@ -71,14 +71,14 @@ public: void bind(GLenum unit) const { - depthMap.bind(GL_TEXTURE_2D_ARRAY, unit); + depthMap.bind(unit); } private: using BandViewExtents = std::array, SHADOW_BANDS + 1>; [[nodiscard]] static size_t getBandViewExtents(BandViewExtents &, const Camera &, const glm::mat4 & lightView); glFrameBuffer depthMapFBO; - glTexture depthMap; + glTexture depthMap; TextureAbsCoord size; BandViewExtents bandViewExtents; -- cgit v1.3