From e0f0cfd81fbec4fc20a591409f1bef67e16d62e7 Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 20 May 2003 01:53:24 +0000 Subject: Bugfixes --- lib/glshape.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/glshape.cc') 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) { -- cgit v1.2.3