opengl-tutorials / ogl

http://www.opengl-tutorial.org
2.69k stars 925 forks source link

glreadpixels picking up wrong color #129

Open xiaossr opened 1 year ago

xiaossr commented 1 year ago

Hello,

I am trying to use the "picking with an OpenGL hack" in misc05_picking/misc05_picking_slow_easy.cpp, but I have a sidebar in my window while the clickable area has coordinates on the right side of the window only. When I click on the clickable area, the coordinates scale to the whole window - how to stop this from happening?