Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6523 in orxonox.OLD for trunk/src/lib/graphics/importer


Ignore:
Timestamp:
Jan 18, 2006, 2:54:04 AM (19 years ago)
Author:
bensch
Message:

trunk: water fake render :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/texture.cc

    r6465 r6523  
    276276               0,
    277277               GL_RGBA,
    278                surface->w, surface->h,
     278               surface->w,
     279               surface->h,
    279280               0,
    280281               GL_RGBA,
     
    294295    PRINTF(1)("Error while loading texture (mipmap generation), gluBuild2DMipmaps returned %i\n", errorCode);
    295296
    296   glBindTexture(target, 0);
     297  if (target == GL_TEXTURE_2D)
     298    glBindTexture(target, 0);
    297299  return texture;
    298300}
Note: See TracChangeset for help on using the changeset viewer.