Browse Source

need to make_current() before capturing screenshot

David Rose 22 years ago
parent
commit
33ae898b0c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/display/graphicsOutput.cxx

+ 2 - 0
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);