I would like to write to a second framebuffer first then copy to the default Display w/ GUI, but I can't figure out how to get the screen size of the default fb.
Specifically I want to use the OpenGL glBlitNamedFramebuffer function to copy render results:
with render_size = (640, 480) and frame_size = (1920,1080). The pangolin window is created with (1920,1080).
But that gives error, OpenGL gives 502 ERROR. However the same code is working if I set frame_size = (640,480), but the result is not what I want, it only occupies a small portion of the screen.
My question is how to get the correct display dimensions?
I would like to write to a second framebuffer first then copy to the default Display w/ GUI, but I can't figure out how to get the screen size of the default fb.
Specifically I want to use the OpenGL glBlitNamedFramebuffer function to copy render results:
with render_size = (640, 480) and frame_size = (1920,1080). The pangolin window is created with (1920,1080).
But that gives error, OpenGL gives 502 ERROR. However the same code is working if I set frame_size = (640,480), but the result is not what I want, it only occupies a small portion of the screen.
My question is how to get the correct display dimensions?