gallium: in GL_SELECT mode, update hitflag in rasterpos
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 28 Feb 2008 16:44:09 +0000 (09:44 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 28 Feb 2008 18:36:54 +0000 (11:36 -0700)
src/mesa/state_tracker/st_cb_rasterpos.c

index 4d73916..2ed2287 100644 (file)
@@ -38,6 +38,7 @@
 
 #include "main/imports.h"
 #include "main/macros.h"
+#include "main/feedback.h"
 
 #include "st_context.h"
 #include "st_atom.h"
@@ -163,6 +164,10 @@ rastpos_point(struct draw_stage *stage, struct prim_header *prim)
                     ctx->Current.RasterTexCoords[i],
                     VERT_RESULT_TEX0 + i, VERT_ATTRIB_TEX0 + i);
    }
+
+   if (ctx->RenderMode == GL_SELECT) {
+      _mesa_update_hitflag( ctx, ctx->Current.RasterPos[2] );
+   }
 }