Skip to content
Snippets Groups Projects
Commit 4db0f513 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix last commit

parent dfb96910
Branches
Tags
No related merge requests found
...@@ -836,16 +836,16 @@ bool drawContext::select(int type, bool multiple, bool mesh, ...@@ -836,16 +836,16 @@ bool drawContext::select(int type, bool multiple, bool mesh,
// for triangle, 4 for quad) and the fourth is the index of the element in // for triangle, 4 for quad) and the fourth is the index of the element in
// the vertex array // the vertex array
GLuint names = *ptr++; GLuint names = *ptr++;
ptr++; // mindepth GLuint mindepth = *ptr++;
GLuint maxdepth = *ptr++; GLuint maxdepth = *ptr++;
if(names == 2){ if(names == 2){
GLuint depth = maxdepth; GLuint depth = maxdepth + 0 * mindepth; // could do something with mindepth
GLuint type = *ptr++; GLuint type = *ptr++;
GLuint ient = *ptr++; GLuint ient = *ptr++;
hits.push_back(hit(type, ient, depth)); hits.push_back(hit(type, ient, depth));
} }
else if(names == 4){ else if(names == 4){
GLuint depth = maxdepth; GLuint depth = maxdepth+ 0 * mindepth; // could do something with mindepth
GLuint type = *ptr++; GLuint type = *ptr++;
GLuint ient = *ptr++; GLuint ient = *ptr++;
GLuint type2 = *ptr++; GLuint type2 = *ptr++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment