mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Merge pull request #289 from arbmarton/fix_csm_bug
Removed bogus line of code
This commit is contained in:
@@ -231,7 +231,6 @@ int main()
|
|||||||
simpleDepthShader.use();
|
simpleDepthShader.use();
|
||||||
|
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, lightFBO);
|
glBindFramebuffer(GL_FRAMEBUFFER, lightFBO);
|
||||||
glFramebufferTexture(GL_FRAMEBUFFER, GL_TEXTURE_2D_ARRAY, lightDepthMaps, 0);
|
|
||||||
glViewport(0, 0, depthMapResolution, depthMapResolution);
|
glViewport(0, 0, depthMapResolution, depthMapResolution);
|
||||||
glClear(GL_DEPTH_BUFFER_BIT);
|
glClear(GL_DEPTH_BUFFER_BIT);
|
||||||
glCullFace(GL_FRONT); // peter panning
|
glCullFace(GL_FRONT); // peter panning
|
||||||
|
|||||||
Reference in New Issue
Block a user