From 33ae898b0cb00d4d696524bd249ae5189b563750 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 9 Feb 2004 18:49:03 +0000 Subject: [PATCH] need to make_current() before capturing screenshot --- panda/src/display/graphicsOutput.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/display/graphicsOutput.cxx b/panda/src/display/graphicsOutput.cxx index 4fb4e1c2ad..36afc3f998 100644 --- a/panda/src/display/graphicsOutput.cxx +++ b/panda/src/display/graphicsOutput.cxx @@ -382,6 +382,8 @@ get_screenshot(PNMImage &image) { return false; } + make_current(); + PixelBuffer p(_x_size, _y_size, 3, 1, PixelBuffer::T_unsigned_byte, PixelBuffer::F_rgb);