mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
make_current();
|
||||||
|
|
||||||
PixelBuffer p(_x_size, _y_size, 3, 1, PixelBuffer::T_unsigned_byte,
|
PixelBuffer p(_x_size, _y_size, 3, 1, PixelBuffer::T_unsigned_byte,
|
||||||
PixelBuffer::F_rgb);
|
PixelBuffer::F_rgb);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user