Texture.cpp
branchv_0
changeset 22 12262f2420de
parent 19 262828ae9682
child 28 4cbd9c0beb4c
--- 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);