git-svn-id: svn://db.shs.com.ru/libs@59 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-12-04 11:50:32 +00:00
parent edfd396059
commit 6ab9283a18
13 changed files with 92 additions and 46 deletions

View File

@@ -403,7 +403,11 @@ void QGLView::renderHalo(const GLObjectBase * obj, const int iid, const QColor &
void QGLView::renderSelection() {
cid = 1;
ids.clear();
if (shaders_supported) sh_id_loc = shader_select->uniformLocation("id");
if (shaders_supported) {
sh_id_loc = shader_select->uniformLocation("id");
shader_select->setUniformValue("z_far", GLfloat(depthEnd()));
shader_select->setUniformValue("z_near", GLfloat(depthStart()));
}
//qDebug() << sh_id_loc;
start_rp.view_matrix = getGLMatrix(GL_MODELVIEW_MATRIX);
glPushMatrix();