diff options
author | pixel <pixel> | 2003-05-20 01:53:24 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-05-20 01:53:24 +0000 |
commit | e0f0cfd81fbec4fc20a591409f1bef67e16d62e7 (patch) | |
tree | 141b2742806249e1746d92b79b392022c95cfb2a /lib/glshape.cc | |
parent | e7595adabac15fd3a523327bf8c42655f989f9c2 (diff) |
Bugfixes
Diffstat (limited to 'lib/glshape.cc')
-rw-r--r-- | lib/glshape.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/glshape.cc b/lib/glshape.cc index 7662334..270279d 100644 --- a/lib/glshape.cc +++ b/lib/glshape.cc @@ -172,6 +172,9 @@ void mogltk::glshape::Leave(bool was2D) { void mogltk::glshape::fdraw(fill * f, ColorP c, int sx, int sy) { ENTERT; + if (!f) + return; + texture * t = f->GetTexture(); if (!t) { @@ -200,6 +203,9 @@ void mogltk::glshape::fdraw(fill * f, ColorP c, int sx, int sy) { void mogltk::glshape::sdraw(fill * f, ColorP c, int sx, int sy) { ENTERT; + if (!f) + return; + texture * t = f->GetSTexture(); if (!t) { |