From: Brian Date: Wed, 17 Oct 2007 18:32:21 +0000 (-0600) Subject: generate selection hit if in selection mode and pos is not clipped X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38743e2ef1091304a7059c04c157fde80bd977ec;p=mesa.git generate selection hit if in selection mode and pos is not clipped --- 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] ); + } }