diff --git a/src/8.guest/2021/2.csm/shadow_mapping.cpp b/src/8.guest/2021/2.csm/shadow_mapping.cpp index 0e396a3..e3011e9 100644 --- a/src/8.guest/2021/2.csm/shadow_mapping.cpp +++ b/src/8.guest/2021/2.csm/shadow_mapping.cpp @@ -231,7 +231,6 @@ int main() simpleDepthShader.use(); glBindFramebuffer(GL_FRAMEBUFFER, lightFBO); - glFramebufferTexture(GL_FRAMEBUFFER, GL_TEXTURE_2D_ARRAY, lightDepthMaps, 0); glViewport(0, 0, depthMapResolution, depthMapResolution); glClear(GL_DEPTH_BUFFER_BIT); glCullFace(GL_FRONT); // peter panning