[PICA] Nearest filtering for depth textures

This commit is contained in:
wheremyfoodat 2023-03-07 22:26:32 +02:00
parent 0ea6eb5138
commit e52667aa79
2 changed files with 3 additions and 3 deletions

View file

@ -151,8 +151,8 @@ struct DepthBuffer {
texture.createDSTexture(size.x(), size.y(), internalFormat, fmt, nullptr, type, GL_TEXTURE_2D);
texture.bind();
texture.setMinFilter(OpenGL::Linear);
texture.setMagFilter(OpenGL::Linear);
texture.setMinFilter(OpenGL::Nearest);
texture.setMagFilter(OpenGL::Nearest);
glBindTexture(GL_TEXTURE_2D, prevTexture);
}