Headcrash is a great book by Bruce Bethke. This however is a nasty hack to prevent memory corruption when computing Mannys Head's bounding box

This commit is contained in:
James Brown 2003-09-01 17:07:31 +00:00
parent 9517179671
commit 22383f5366

View file

@ -647,6 +647,12 @@ void Model::Mesh::draw() const {
glPopMatrix();
glEnable(GL_TEXTURE_2D ); */
// Ender: HACK HACK HACK
// Mannys head isn't computed correctly, so bail out to prevent memory corruption.
// .. at least until it IS computed, or the DirtyScreen code has bounds checking :)
if (strstr(name_, "m_head_1"))
return;
// Yaz: debug
// this compute the dirty rect for the mesh