Never try to make a glwrap DrawFill over an empty mesh...
This commit is contained in:
parent
e271f9adb8
commit
aa04a96264
|
@ -419,11 +419,11 @@ void Draw()
|
||||||
template <NormalMode nm, ColorMode cm, TextureMode tm>
|
template <NormalMode nm, ColorMode cm, TextureMode tm>
|
||||||
void DrawFill()
|
void DrawFill()
|
||||||
{
|
{
|
||||||
|
if(m->fn==0) return;
|
||||||
typename FACE_POINTER_CONTAINER::iterator fp;
|
typename FACE_POINTER_CONTAINER::iterator fp;
|
||||||
|
|
||||||
typename MESH_TYPE::FaceIterator fi;
|
typename MESH_TYPE::FaceIterator fi;
|
||||||
|
|
||||||
|
|
||||||
typename std::vector<typename MESH_TYPE::FaceType*>::iterator fip;
|
typename std::vector<typename MESH_TYPE::FaceType*>::iterator fip;
|
||||||
short curtexname=-1;
|
short curtexname=-1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue