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:
parent
9517179671
commit
22383f5366
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue