summaryrefslogtreecommitdiff
path: root/lib/glshape.cc
diff options
context:
space:
mode:
authorpixel <pixel>2003-05-20 01:53:24 +0000
committerpixel <pixel>2003-05-20 01:53:24 +0000
commite0f0cfd81fbec4fc20a591409f1bef67e16d62e7 (patch)
tree141b2742806249e1746d92b79b392022c95cfb2a /lib/glshape.cc
parente7595adabac15fd3a523327bf8c42655f989f9c2 (diff)
Bugfixes
Diffstat (limited to 'lib/glshape.cc')
-rw-r--r--lib/glshape.cc6
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) {