From f4a93d8419b9a4ff1be67f41ce6febc704852fbf Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 10 Dec 2023 00:10:51 -0600 Subject: [PATCH] [glutils] Change frame buffers to just use linear filtering --- src/glutils/glutils.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/glutils/glutils.cpp b/src/glutils/glutils.cpp index dc836bdc..b1024976 100644 --- a/src/glutils/glutils.cpp +++ b/src/glutils/glutils.cpp @@ -160,9 +160,8 @@ void resizeInitFrameBuffer(FrameBuffer &fb, int width, int height) noexcept { // color texture glBindTexture(GL_TEXTURE_2D, fb.color); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, nullptr); - glGenerateMipmap(GL_TEXTURE_2D); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR_MIPMAP_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); // depth texture glBindRenderbuffer(GL_RENDERBUFFER, fb.depth); glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH24_STENCIL8, width, height);