Navigation Menu

Skip to content

Commit

Permalink
Added a sanity check to R_MaterialCreate() to ensure we aren't creati…
Browse files Browse the repository at this point in the history
…ng materials without a texture.
  • Loading branch information
danij committed Jan 4, 2009
1 parent da4ba76 commit f235d67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/engine/portable/src/r_materials.c
Expand Up @@ -706,6 +706,8 @@ Con_Message("R_MaterialCreate: Warning, attempted to create material "
return NULL;
}

assert(mTex); // Sanity check.

/**
* A new material.
*/
Expand Down

0 comments on commit f235d67

Please sign in to comment.