diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-11-13 00:28:09 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-11-13 00:28:09 +0300 |
commit | 521815eab2b9753618f262c774bb8017cb4f8edf (patch) | |
tree | 928d1c89c2eec08167cc6470d8cd7304733c2486 /source | |
parent | 3a1b7ece402001f2f93669a7b36c32f5e7827bab (diff) |
Removed erroneous switch to the front buffer when reading depth values in sculptmode and retopo.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/drawview.c | 2 | ||||
-rw-r--r-- | source/blender/src/sculptmode.c | 2 |
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; } |