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)
|
if(EventHandler(INITIALIZE, nil) == EVENTERROR)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
rw::ps2::adcHack = true;
|
||||||
if(EventHandler(RWINITIALIZE, nil) == EVENTERROR)
|
if(EventHandler(RWINITIALIZE, nil) == EVENTERROR)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|||||||
@@ -100,9 +100,8 @@ CreateKnotGeometry(void)
|
|||||||
mat->destroy(); // list holds a ref now
|
mat->destroy(); // list holds a ref now
|
||||||
|
|
||||||
geo->calculateBoundingSphere();
|
geo->calculateBoundingSphere();
|
||||||
// strips are the well-trodden path on PS2 (and a test for the tristripper)
|
geo->unlock();
|
||||||
geo->flags |= Geometry::TRISTRIP;
|
|
||||||
geo->buildMeshes();
|
|
||||||
return geo;
|
return geo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user