17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 13:19:20 +02:00

Bind an empty shadow map instead of unbinding the shadow map unit

This commit is contained in:
2026-10-15 17:11:31 +02:00
parent 9f2ae071a6
commit c77151979a
3 changed files with 22 additions and 11 deletions

View File

@@ -982,7 +982,6 @@ opengl_texture::create( bool const Static ) {
{
if (data_components == GL_DEPTH_COMPONENT)
{
glTexParameteri(target, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_REF_TO_TEXTURE);
wrap_mode_s = GL_CLAMP_TO_BORDER;
wrap_mode_t = GL_CLAMP_TO_BORDER;
float borderColor[] = { 0.0f, 0.0f, 0.0f, 0.0f };