datamap object passed around while loading
[laserbrain_demo] / src / sceneload.cc
index 7e9cade..ad6e61e 100644 (file)
@@ -202,7 +202,7 @@ static bool load_material(Scene *scn, Material *mat, const aiMaterial *aimat)
                        int textype = assimp_textype(aitype);
                        info_log("loading %s texture: %s\n", assimp_textypestr(aitype), fname);
 
-                       Texture *tex = scn->texset->get_texture(fname, TEX_2D);
+                       Texture *tex = scn->texset->get_texture(fname, TEX_2D, &scn->datamap);
                        assert(tex);
                        mat->textures.push_back(tex);