summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-17 12:32:21 -0600
committerBrian <[email protected]>2007-10-17 12:32:21 -0600
commit38743e2ef1091304a7059c04c157fde80bd977ec (patch)
treefb8a31824494347caafbe814438ac2eb34d41d8c /src
parent4338f0f709255cc4d69d01b9aca579bca31ac269 (diff)
generate selection hit if in selection mode and pos is not clipped
Diffstat (limited to 'src')
-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 13580e400bd..653801001a8 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/src/mesa/state_tracker/st_cb_rasterpos.c
@@ -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] );
+ }
}