Difference for arch/ogl/ogl.c from version 1.31 to 1.32


version 1.31 version 1.32
Line 46
 
Line 46
   
 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;
Line 68
 
Line 69
 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};
Line 1452
 
Line 1454
  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);

Legend:
line(s) removed in v.1.31 
line(s) changed
 line(s) added in v.1.32