Commit a812f4cb authored by Jan Möbius's avatar Jan Möbius

Dennis glViewer multiview mode picking patch

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5221 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 74dbeadb
......@@ -93,7 +93,11 @@ int glViewer::pickColor( ACG::SceneGraph::PickTarget _pickTarget,
ACG::Vec3d* _hitPointPtr )
{
GLint x = _mousePos.x(),
GLint w = glWidth(),
h = glHeight(),
l = scenePos().x(),
b = scene()->height () - scenePos().y() - h,
x = _mousePos.x(),
y = scene()->height () - _mousePos.y();
GLubyte pixels[9][3];
GLfloat depths[9];
......@@ -106,6 +110,7 @@ int glViewer::pickColor( ACG::SceneGraph::PickTarget _pickTarget,
// prepare GL state
makeCurrent();
glViewport (l, b, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment