X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmaterial.cc;h=6b10534581ef6f31661f72f67bda66f0172bd61a;hb=26c1717925471539b9745cce6275b218a47147cd;hp=ac8c11247909590c776e2f6fcacacd28fb93daa2;hpb=8137121400748ee8afb1608253aae15323c5e3a2;p=laserbrain_demo diff --git a/src/material.cc b/src/material.cc index ac8c112..6b10534 100644 --- a/src/material.cc +++ b/src/material.cc @@ -2,6 +2,8 @@ #include #include "opengl.h" #include "material.h" +#include "sdr.h" +#include "app.h" Material::Material() : diffuse(1.0f, 1.0f, 1.0f) @@ -24,13 +26,68 @@ void Material::setup() const for(int i=0; i::iterator it = std::find(textures.begin(), textures.end(), tex); + if(it != textures.end()) { + textures.erase(it); + } + + for(int i=0; i