summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-04-08 13:34:05 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-04-08 13:34:05 +0000
commit71c4acf14f521dafe8746d54dd03406de3723b13 (patch)
tree4a406b4e10eddec125ea1840d63e8962a69aa564
parent5dcf4332c48cd5065e988f347b4b244418dadb59 (diff)
add missing return in raster_pos4f()
-rw-r--r--src/mesa/main/rastpos.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c
index 606e80d925..47c9f105b0 100644
--- a/src/mesa/main/rastpos.c
+++ b/src/mesa/main/rastpos.c
@@ -1,9 +1,8 @@
-
/*
* Mesa 3-D graphics library
- * Version: 4.1
+ * Version: 5.0.2
*
- * Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -329,8 +328,10 @@ raster_pos4f(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
/* clip to view volume */
if (ctx->Transform.RasterPositionUnclipped) {
/* GL_IBM_rasterpos_clip: only clip against Z */
- if (viewclip_point_z(clip) == 0)
+ if (viewclip_point_z(clip) == 0) {
ctx->Current.RasterPosValid = GL_FALSE;
+ return;
+ }
}
else if (viewclip_point(clip) == 0) {
/* Normal OpenGL behaviour */