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

fix last commit

parent dfb96910
No related branches found
No related tags found
No related merge requests found
......@@ -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
// the vertex array
GLuint names = *ptr++;
ptr++; // mindepth
GLuint mindepth = *ptr++;
GLuint maxdepth = *ptr++;
if(names == 2){
GLuint depth = maxdepth;
GLuint depth = maxdepth + 0 * mindepth; // could do something with mindepth
GLuint type = *ptr++;
GLuint ient = *ptr++;
hits.push_back(hit(type, ient, depth));
}
else if(names == 4){
GLuint depth = maxdepth;
GLuint depth = maxdepth+ 0 * mindepth; // could do something with mindepth
GLuint type = *ptr++;
GLuint ient = *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