Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

trunk: water fake render :)

Location:
trunk/src/lib/graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r6522 r6523  
    474474void GraphicsEngine::wireframe()
    475475{
    476   glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
     476  glPolygonMode(GL_FRONT, GL_LINE);
    477477}
    478478
  • 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.