projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbbf4e7
)
Added mipmapping, but disabled it, as it leads to some unwanted blurriness
author
Ingo Ruhnke
<grumbel@gmx.de>
Sun, 6 Dec 2009 22:35:11 +0000
(22:35 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Sun, 6 Dec 2009 22:35:11 +0000
(22:35 +0000)
SVN-Revision: 6188
src/video/gl/gl_texture.cpp
patch
|
blob
|
history
diff --git
a/src/video/gl/gl_texture.cpp
b/src/video/gl/gl_texture.cpp
index
f9fa1b2
..
ca56a98
100644
(file)
--- a/
src/video/gl/gl_texture.cpp
+++ b/
src/video/gl/gl_texture.cpp
@@
-135,9
+135,20
@@
GLTexture::GLTexture(SDL_Surface* image) :
{
SDL_LockSurface(convert);
}
- glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texture_width,
+
+ if (true)
+ { // no not use mipmaps
+ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texture_width,
texture_height, 0, sdl_format,
GL_UNSIGNED_BYTE, convert->pixels);
+ }
+ else
+ { // build mipmaps
+ gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, texture_width,
+ texture_height, sdl_format,
+ GL_UNSIGNED_BYTE, convert->pixels);
+ }
+
if(SDL_MUSTLOCK(convert))
{
SDL_UnlockSurface(convert);