diff --git a/src/ofxSurfaceGui.cpp b/src/ofxSurfaceGui.cpp index d26ac63..2279e7d 100644 --- a/src/ofxSurfaceGui.cpp +++ b/src/ofxSurfaceGui.cpp @@ -2,7 +2,7 @@ ofxSurfaceGui::ofxSurfaceGui() { - + surface = NULL; } ofxSurfaceGui::~ofxSurfaceGui() @@ -18,6 +18,8 @@ void ofxSurfaceGui::setup(ofxTriangleSurface& surfaceForGui) void ofxSurfaceGui::update() { + if (surface == NULL) return; + for ( int i=0; i