If you create a depth texture using glFramebufferTexture2D will that texture still be available in the next frame?
I ask, because I see artifacts in my shadow map if the shadows are only rendered once. If I render the shadows every frame there is no problem. It seems like something is corrupting my shadow texture.






