aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/depth.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-09 08:04:41 +0000
committermarha <marha@users.sourceforge.net>2011-02-09 08:04:41 +0000
commit744bc6a5e71f207a33b0826598c1f93302f7fe01 (patch)
tree63dcb1464076af2a0eba4f5655bfb2ebb47fe486 /mesalib/src/mesa/main/depth.c
parent67ff1435e31fee46b1bc8d1c65da27f8ad1c39f9 (diff)
parent51a59b7f7f9b134791d3b09673063e4c45ea9eee (diff)
downloadvcxsrv-744bc6a5e71f207a33b0826598c1f93302f7fe01.tar.gz
vcxsrv-744bc6a5e71f207a33b0826598c1f93302f7fe01.tar.bz2
vcxsrv-744bc6a5e71f207a33b0826598c1f93302f7fe01.zip
svn merge ^/branches/released .
Diffstat (limited to 'mesalib/src/mesa/main/depth.c')
-rw-r--r--mesalib/src/mesa/main/depth.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/depth.c b/mesalib/src/mesa/main/depth.c
index fe1380e71..d666ed5fe 100644
--- a/mesalib/src/mesa/main/depth.c
+++ b/mesalib/src/mesa/main/depth.c
@@ -44,6 +44,9 @@ _mesa_ClearDepth( GLclampd depth )
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
+ if (MESA_VERBOSE & VERBOSE_API)
+ _mesa_debug(ctx, "glClearDepth(%f)\n", depth);
+
depth = CLAMP( depth, 0.0, 1.0 );
if (ctx->Depth.Clear == depth)
@@ -133,6 +136,9 @@ _mesa_DepthBoundsEXT( GLclampd zmin, GLclampd zmax )
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
+ if (MESA_VERBOSE & VERBOSE_API)
+ _mesa_debug(ctx, "glDepthBounds(%f, %f)\n", zmin, zmax);
+
if (zmin > zmax) {
_mesa_error(ctx, GL_INVALID_VALUE, "glDepthBoundsEXT(zmin > zmax)");
return;