nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/mnit: fix and improve magnification for a pixelized (to smooth) look
[nit.git]
/
lib
/
mnit
/
opengles1.nit
diff --git
a/lib/mnit/opengles1.nit
b/lib/mnit/opengles1.nit
index
24a904b
..
b11d8dd
100644
(file)
--- a/
lib/mnit/opengles1.nit
+++ b/
lib/mnit/opengles1.nit
@@
-123,7
+123,8
@@
in "C" `{
PRINT_ERROR("error loading image after glTexImage2D: %i", mnit_opengles_error_code);
}
PRINT_ERROR("error loading image after glTexImage2D: %i", mnit_opengles_error_code);
}
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
if ((mnit_opengles_error_code = glGetError()) != GL_NO_ERROR) {
PRINT_ERROR("error loading image after gtTexParameter: %i", mnit_opengles_error_code);
if ((mnit_opengles_error_code = glGetError()) != GL_NO_ERROR) {
PRINT_ERROR("error loading image after gtTexParameter: %i", mnit_opengles_error_code);