From 32d64954df951d37a49ca3887750f7eb61fd378b Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 24 Aug 2006 17:26:26 +0000
Subject: [PATCH] I think picking undo is more intuitive when using maxdepth

---
 Graphics/SelectBuffer.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Graphics/SelectBuffer.cpp b/Graphics/SelectBuffer.cpp
index 848e40586b..096e2539ba 100644
--- a/Graphics/SelectBuffer.cpp
+++ b/Graphics/SelectBuffer.cpp
@@ -1,4 +1,4 @@
-// $Id: SelectBuffer.cpp,v 1.3 2006-08-24 15:09:30 geuzaine Exp $
+// $Id: SelectBuffer.cpp,v 1.4 2006-08-24 17:26:26 geuzaine Exp $
 //
 // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
 //
@@ -103,16 +103,16 @@ bool ProcessSelectionBuffer(int entityType, bool multipleSelection,
     //   and the fourth is the index of the element in the vertex
     //   array
     GLuint names = *ptr++; 
-    GLuint mindepth = *ptr++;
-    *ptr++; // maxdepth
+    *ptr++; // mindepth
+    GLuint maxdepth = *ptr++;
     if(names == 2){
-      GLuint depth = mindepth;
+      GLuint depth = maxdepth;
       GLuint type = *ptr++; 
       GLuint ient = *ptr++;
       hits.push_back(hit(type, ient, depth));
     }
     else if(names == 4){
-      GLuint depth = mindepth;
+      GLuint depth = maxdepth;
       GLuint type = *ptr++; 
       GLuint ient = *ptr++;
       GLuint type2 = *ptr++; 
-- 
GitLab