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

Initialize Picking namebuffer for Qt Base Viewer

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17669 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 560e7314
......@@ -431,6 +431,10 @@ bool glViewer::pickGL( ACG::SceneGraph::PickTarget _pickTarget,
GLuint selectionBuffer[ SELECTION_BUFFER_SIZE ],
nameBuffer[ NAME_STACK_SIZE ];
// Initialize name buffer (This value is never used afterwards)
nameBuffer[0] = 0;
nameBuffer[1] = 0;
const ACG::GLMatrixd& modelview = properties_.glState().modelview();
const ACG::GLMatrixd& projection = properties_.glState().projection();
......
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