diff --git a/direct/src/showbase/showBase.cxx b/direct/src/showbase/showBase.cxx index 80c27eaaf6..d75811baed 100644 --- a/direct/src/showbase/showBase.cxx +++ b/direct/src/showbase/showBase.cxx @@ -281,7 +281,7 @@ void take_snapshot(GraphicsWindow *win, const string &name) { PixelBuffer::F_rgb); p.copy(gsg, dr, rb); - p.write(name.c_str()); + p.write(name); } // Returns the configure object for accessing config variables from a