[grits] Fix extra mouse-over bug



commit 4ed796d0c4b1b30c52ca92b6fa123bfcea0b58ad
Author: Andy Spencer <andy753421 gmail com>
Date:   Thu Nov 24 09:40:03 2011 +0000

    Fix extra mouse-over bug
    
    When selecting one polygon, it sets the line width and makes it appear
    that following polygons are also selected.

 src/objects/grits-poly.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/objects/grits-poly.c b/src/objects/grits-poly.c
index e9bce7f..2b62997 100644
--- a/src/objects/grits-poly.c
+++ b/src/objects/grits-poly.c
@@ -83,7 +83,8 @@ static void grits_poly_draw(GritsObject *_poly, GritsOpenGL *opengl)
 	//g_debug("GritsPoly: draw");
 	GritsPoly *poly = GRITS_POLY(_poly);
 
-	glPushAttrib(GL_COLOR_BUFFER_BIT | GL_ENABLE_BIT | GL_CURRENT_BIT);
+	glPushAttrib(GL_COLOR_BUFFER_BIT | GL_ENABLE_BIT | GL_CURRENT_BIT |
+			GL_POINT_BIT | GL_LINE_BIT | GL_POLYGON_BIT);
 	glDisable(GL_TEXTURE_2D);
 	glDisable(GL_ALPHA_TEST);
 	glDisable(GL_CULL_FACE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]