From e52667aa79ffb1feffcf616b3a9a2d3f2f7b9b33 Mon Sep 17 00:00:00 2001 From: wheremyfoodat Date: Tue, 7 Mar 2023 22:26:32 +0200 Subject: [PATCH] [PICA] Nearest filtering for depth textures --- include/renderer_gl/surfaces.hpp | 4 ++-- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/renderer_gl/surfaces.hpp b/include/renderer_gl/surfaces.hpp index cfb86f84..680a1454 100644 --- a/include/renderer_gl/surfaces.hpp +++ b/include/renderer_gl/surfaces.hpp @@ -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); } diff --git a/src/main.cpp b/src/main.cpp index 2dc17683..3a078e8f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,7 +9,7 @@ int main (int argc, char *argv[]) { emu.initGraphicsContext(); - auto romPath = std::filesystem::current_path() / (argc > 1 ? argv[1] : "Pokemon Rumble Blast (USA).3ds"); + auto romPath = std::filesystem::current_path() / (argc > 1 ? argv[1] : "SimplerTri_AddedLogs.elf"); if (!emu.loadROM(romPath)) { // For some reason just .c_str() doesn't show the proper path Helpers::panic("Failed to load ROM file: %s", romPath.string().c_str());