Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2006-11-13 00:28:09 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2006-11-13 00:28:09 +0300
commit521815eab2b9753618f262c774bb8017cb4f8edf (patch)
tree928d1c89c2eec08167cc6470d8cd7304733c2486 /source/blender/src
parent3a1b7ece402001f2f93669a7b36c32f5e7827bab (diff)
Removed erroneous switch to the front buffer when reading depth values in sculptmode and retopo.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/drawview.c2
-rw-r--r--source/blender/src/sculptmode.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index e29fdb3af84..64f24e2bd94 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -2689,10 +2689,8 @@ void view3d_update_depths(View3D *v3d)
}
if(d->damaged) {
- glReadBuffer(GL_FRONT);
glReadPixels(v3d->area->winrct.xmin,v3d->area->winrct.ymin,d->w,d->h,
GL_DEPTH_COMPONENT,GL_FLOAT, d->depths);
- glReadBuffer(GL_BACK);
glGetDoublev(GL_DEPTH_RANGE,d->depth_range);
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c
index 38d41f299f6..282d3fb678a 100644
--- a/source/blender/src/sculptmode.c
+++ b/source/blender/src/sculptmode.c
@@ -547,9 +547,7 @@ float get_depth(short x, short y)
x+= curarea->winrct.xmin;
y+= curarea->winrct.ymin;
- glReadBuffer(GL_FRONT);
glReadPixels(x, y, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &depth);
- glReadBuffer(GL_BACK);
return depth;
}