Commit 907cfa3f authored by Jan Möbius's avatar Jan Möbius
Browse files

Allow unbinding of all textures

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5818 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 37f14a66
......@@ -476,6 +476,15 @@ bool TextureNode::activateTexture(GLuint _id)
{
int search = available(_id);
//==========================================================================
// If zero is given, unbind all textures
//==========================================================================
if ( _id == 0 )
search = 0;
//==========================================================================
// Index has not been found ... No corresponding Texture in this node
//==========================================================================
if ( search == -1 ) {
std::cerr << "Texture to activate not found!" << std::endl;
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment