generate selection hit if in selection mode and pos is not clipped
authorBrian <brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 18:32:21 +0000 (12:32 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 18:32:21 +0000 (12:32 -0600)
src/mesa/state_tracker/st_cb_rasterpos.c

index 13580e4..6538010 100644 (file)
@@ -31,6 +31,7 @@
   */
 
 #include "main/imports.h"
+#include "main/feedback.h"
 #include "main/macros.h"
 
 #include "st_context.h"
@@ -250,6 +251,10 @@ update_rasterpos(GLcontext *ctx,
    }
 
    ctx->Current.RasterPosValid = GL_TRUE;
+
+   if (ctx->RenderMode == GL_SELECT) {
+      _mesa_update_hitflag( ctx, ctx->Current.RasterPos[2] );
+   }
 }