Difference for arch/ogl/ogl.c from version 1.38 to 1.39


version 1.38 version 1.39
Line 1510
 
Line 1510
  tex->v=(float)tex->h/(float)tex->th;   tex->v=(float)tex->h/(float)tex->th;
   
 #ifdef GL_EXT_paletted_texture  #ifdef GL_EXT_paletted_texture
  if (ogl_shared_palette_ok && tex->format==GL_RGBA) {   if (ogl_shared_palette_ok && tex->format==GL_RGBA &&
    !(tex->wantmip && GL_needmipmaps) // gluBuild2DMipmaps doesn't support paletted textures.. this could be worked around be generating our own mipmaps, but thats too much trouble at the moment.
    ) {
  //descent makes palette entries 254 and 255 both do double duty, depending upon the setting of BM_FLAG_SUPER_TRANSPARENT and BM_FLAG_TRANSPARENT.   //descent makes palette entries 254 and 255 both do double duty, depending upon the setting of BM_FLAG_SUPER_TRANSPARENT and BM_FLAG_TRANSPARENT.
  // So if the texture doesn't have BM_FLAG_TRANSPARENT set, yet uses index 255, we cannot use the palette for it since that color would be incorrect. (this case is much less common than transparent textures, hence why we don't exclude those instead.)   // So if the texture doesn't have BM_FLAG_TRANSPARENT set, yet uses index 255, we cannot use the palette for it since that color would be incorrect. (this case is much less common than transparent textures, hence why we don't exclude those instead.)
  // We don't handle super transparent textures with ogl yet, so we don't bother checking that here.   // We don't handle super transparent textures with ogl yet, so we don't bother checking that here.

Legend:
line(s) removed in v.1.38 
line(s) changed
 line(s) added in v.1.39