X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fobject.cpp;h=f710145a08cb23913aa6db794ca878bb2b6649ef;hp=56b2648203992a8ad10ea55725dbfd1f75788d4d;hb=0f3ae7cf6aed59f07895dfbef6740be3b666fc20;hpb=c7b4f16ba8467835d7a0100c722d653efbc00a94 diff --git a/source/object.cpp b/source/object.cpp index 56b26482..f710145a 100644 --- a/source/object.cpp +++ b/source/object.cpp @@ -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)