]> git.tdb.fi Git - libs/gl.git/blobdiff - source/object.cpp
Support specifying elements in PrimitiveBuilder
[libs/gl.git] / source / object.cpp
index 56b2648203992a8ad10ea55725dbfd1f75788d4d..f710145a08cb23913aa6db794ca878bb2b6649ef 100644 (file)
@@ -79,7 +79,7 @@ void Object::setup_render(const ObjectPass &pass) const
                        textures[i]->bind();
                }
        }
-       else if(main_texture)
+       else if(main_texture && pass.use_textures)
                main_texture->bind();
 
        if(material)