mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
need to make_current() before capturing screenshot
This commit is contained in:
parent
fbca2647f9
commit
33ae898b0c
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user