texture magnification filter: linear (blurry) vs. nearest (sharp/pixelatex)
--- a/Texture.cpp Wed Dec 06 22:54:24 2023 +0100
+++ b/Texture.cpp Wed Dec 06 22:55:43 2023 +0100
@@ -79,7 +79,8 @@
img.getData());
glTexParameteri(GLT2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GLT2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
- glTexParameteri(GLT2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ glTexParameteri(GLT2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); // blurry upscale
+ glTexParameteri(GLT2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); // sharp upscale
glTexParameteri(GLT2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glGenerateMipmap(GLT2D);
checkError(&std::cerr);