Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6651 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Jan 22, 2006, 2:22:48 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: copy Resources from the ResourceManger (this is not as safe as with smart-pointers :( )

maybe implement:
http://ootips.org/yonat/4dev/counted_ptr.h

Location:
trunk/src/lib
Files:
2 edited

Legend:

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

    r6645 r6651  
    8181    ResourceManager::getInstance()->unload(this->diffuseTexture);
    8282  if (m.diffuseTexture != NULL)
    83     this->diffuseTexture = m.diffuseTexture; /// HACK shoudl be:(Texture*)ResourceManager::getInstance()->load();
     83    this->diffuseTexture = (Texture*)ResourceManager::getInstance()->copy(m.diffuseTexture);
    8484  this->ambientTexture = NULL; /// FIXME
    8585  this->specularTexture = NULL; /// FIXME
  • trunk/src/lib/particles/sprite_particles.cc

    r6628 r6651  
    125125  GLboolean checkLight = false;
    126126  glGetBooleanv(GL_LIGHTING, &checkLight);
    127   if (checkLight == GL_TRUE)
    128     glDisable(GL_LIGHTING);
     127//  if (checkLight == GL_TRUE)
     128//    glDisable(GL_LIGHTING);
    129129  glMatrixMode(GL_MODELVIEW);
    130130  glDepthMask(GL_FALSE);
Note: See TracChangeset for help on using the changeset viewer.