mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
undo that last change
This commit is contained in:
parent
363f579d14
commit
51e0712525
@ -1983,9 +1983,9 @@ copy_pixel_buffer(PixelBuffer *pb, const DisplayRegion *dr) {
|
|||||||
<< (void *)pb->_image.p() << ")" << endl;
|
<< (void *)pb->_image.p() << ")" << endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// pixelbuffer "origin" represents upper left screen point at which
|
||||||
//glReadPixels( pb->get_xorg() + xo, pb->get_yorg() + yo, // pb->origin is probably a meaningless vestigial field thats always zero. shouldnt be added here
|
// pixelbuffer should be drawn using draw_pixel_buffer
|
||||||
glReadPixels(xo, yo,
|
glReadPixels(pb->get_xorg() + xo, pb->get_yorg() + yo,
|
||||||
pb->get_xsize(), pb->get_ysize(),
|
pb->get_xsize(), pb->get_ysize(),
|
||||||
get_external_image_format(pb->get_format()),
|
get_external_image_format(pb->get_format()),
|
||||||
get_image_type(pb->get_image_type()),
|
get_image_type(pb->get_image_type()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user