version 1.31 | | version 1.32 |
---|
| | |
| | |
int GL_texmagfilt=GL_NEAREST; | | int GL_texmagfilt=GL_NEAREST; |
int GL_texminfilt=GL_NEAREST; | | int GL_texminfilt=GL_NEAREST; |
| | float GL_texanisofilt=0; |
int GL_needmipmaps=0; | | int GL_needmipmaps=0; |
| | |
int last_width=-1,last_height=-1; | | int last_width=-1,last_height=-1; |
| | |
int ogl_sgis_multitexture_ok=0; | | int ogl_sgis_multitexture_ok=0; |
#endif | | #endif |
int ogl_nv_texture_env_combine4_ok=0; | | int ogl_nv_texture_env_combine4_ok=0; |
| | int ogl_ext_texture_filter_anisotropic_ok=0; |
| | |
int sphereh=0; | | int sphereh=0; |
int cross_lh[2]={0,0}; | | int cross_lh[2]={0,0}; |
| | |
if (tex->wantmip){ | | if (tex->wantmip){ |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_texmagfilt); | | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_texmagfilt); |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_texminfilt); | | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_texminfilt); |
| | if (ogl_ext_texture_filter_anisotropic_ok && GL_texanisofilt) |
| | glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, GL_texanisofilt); |
}else{ | | }else{ |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); | | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); | | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); |