mirror of https://github.com/CGAL/cgal
Fix highlighting
This commit is contained in:
parent
3c770e07df
commit
ad8d97e566
|
|
@ -365,6 +365,7 @@ public Q_SLOTS:
|
|||
// highlight with mouse move event
|
||||
QGLViewer* viewer = *QGLViewer::QGLViewerPool().begin();
|
||||
qglviewer::Camera* camera = viewer->camera();
|
||||
viewer->makeCurrent();
|
||||
bool found = false;
|
||||
const qglviewer::Vec& point = camera->pointUnderPixel(hl_pos, found) - offset;
|
||||
if(found)
|
||||
|
|
|
|||
|
|
@ -293,6 +293,7 @@ void Scene_polyhedron_selection_item_priv::initialize_temp_buffers(CGAL::Three::
|
|||
program->enableAttributeArray("vertex");
|
||||
program->setAttributeBuffer("vertex",GL_FLOAT,0,3);
|
||||
item->buffers[VertexTempPoints].release();
|
||||
program->disableAttributeArray("colors");
|
||||
item->vaos[TempPoints]->release();
|
||||
|
||||
item->vaos[FixedPoints]->bind();
|
||||
|
|
|
|||
Loading…
Reference in New Issue