mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 04:49:14 +12:00
[PICA] Nearest filtering for depth textures
This commit is contained in:
parent
0ea6eb5138
commit
e52667aa79
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue