Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-01-27 12:36:26 +0000
committerStijn Buys <ingar@osirion.org>2011-01-27 12:36:26 +0000
commit2a87246be478e5ddd2bef4080f36382a889e02dd (patch)
treed203a9a49044f03764dc2661f688b1c6c836e56d /src/client
parent45b93da49b74acd7389e4faa1cfd5dba6cd75c95 (diff)
Moved material loading from render to core, make sure the dedicated server reads materials.ini,
removed unnecessary CollisionMesh::translate() method.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/video.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/client/video.cc b/src/client/video.cc
index 84bbe52..2949ae7 100644
--- a/src/client/video.cc
+++ b/src/client/video.cc
@@ -227,7 +227,7 @@ bool init()
// initialize renderer
render::init(width, height);
-
+
// apply render options
ui::root()->load_settings();
@@ -267,10 +267,22 @@ void resize(int w, int h)
void restart()
{
shutdown();
+
+ // clear models and materials
+ /* resetting the rednder subsystem will force a reload of all materials
+ */
+ model::Model::clear();
+
+ model::Material::clear();
+
if (!init()) {
client()->quit(1);
}
+
+ model::Material::init();
+ render::load();
+
input::reset();
}