mirror of
https://github.com/aap/librw.git
synced 2026-08-10 09:37:04 +01:00
fix torus demo for ps2
This commit is contained in:
@@ -222,6 +222,7 @@ main(int argc, char *argv[])
|
||||
if(EventHandler(INITIALIZE, nil) == EVENTERROR)
|
||||
return 0;
|
||||
|
||||
rw::ps2::adcHack = true;
|
||||
if(EventHandler(RWINITIALIZE, nil) == EVENTERROR)
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -100,9 +100,8 @@ CreateKnotGeometry(void)
|
||||
mat->destroy(); // list holds a ref now
|
||||
|
||||
geo->calculateBoundingSphere();
|
||||
// strips are the well-trodden path on PS2 (and a test for the tristripper)
|
||||
geo->flags |= Geometry::TRISTRIP;
|
||||
geo->buildMeshes();
|
||||
geo->unlock();
|
||||
|
||||
return geo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user