summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-02-28 09:44:09 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-02-28 11:36:54 -0700
commit9a264a056abc376a70e01f097934d590a36df887 (patch)
tree08d67e5afff5139cbf35e5220f1b38bd8d3ffb00 /src/mesa
parente280bd50cc46ddbf5ac7fbaafc934d1048d77ba2 (diff)
gallium: in GL_SELECT mode, update hitflag in rasterpos
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_rasterpos.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c
index 4d73916a35..2ed228778e 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/src/mesa/state_tracker/st_cb_rasterpos.c
@@ -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] );
+ }
}