Skip to content
Snippets Groups Projects
Commit 8746804c authored by slevy's avatar slevy
Browse files

Make picking work in crosseyed stereo mode.

parent 3175744e
No related branches found
No related tags found
No related merge requests found
......@@ -241,6 +241,12 @@ void Fl_Gview::glprojection( float nearclip, float farclip, const Matrix *postpr
glLoadIdentity();
if(inpick()) {
GLint vp[4] = {0, 0, w(), h()};
if(stereo_ == GV_CROSSEYED) {
/* Jigger viewport -- choose whichever half this pick came from */
int myw = (w() - stereooff_)/2;
vp[2] = myw;
if(pickx_ > myw) vp[0] = w() - myw;
}
gluPickMatrix( pickx_, picky_, pickwidth_, pickheight_, vp );
}
if(use_subc_) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment