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:
authorJeroen Bakker <j.bakker@atmind.nl>2019-03-26 17:06:29 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-03-26 17:07:05 +0300
commit33a759a39c9493dd2c89068107e697e0d84a81b2 (patch)
treecdadead7ff6850b4c327231c80abdad70b3bfdc9 /source/blender/draw
parentfb96dcd71395b5bb9b4f37c822cac802c98ebb42 (diff)
Revert "DRW Manager: create and use new DRW_framebuffer_depth_read utility."
This reverts commit 40f8f445a3f9b6bc24b58e45be46060cc36c0394. There are many paths that lead to uninitialized depth buffer where the depth read would fail. Fix T62965
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/DRW_engine.h1
-rw-r--r--source/blender/draw/intern/draw_manager.c8
2 files changed, 0 insertions, 9 deletions
diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h
index 94d1bc61b57..68d4ef04f95 100644
--- a/source/blender/draw/DRW_engine.h
+++ b/source/blender/draw/DRW_engine.h
@@ -126,7 +126,6 @@ void DRW_draw_depth_loop(
void DRW_framebuffer_select_id_setup(struct ARegion *ar, const bool clear);
void DRW_framebuffer_select_id_release(struct ARegion *ar);
void DRW_framebuffer_select_id_read(const struct rcti *rect, uint *r_buf);
-void DRW_framebuffer_depth_read(const struct rcti *rect, float *r_buf);
/* grease pencil render */
bool DRW_render_check_grease_pencil(struct Depsgraph *depsgraph);
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 4ecfb903a78..64e9b1a4259 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -2511,14 +2511,6 @@ void DRW_framebuffer_select_id_read(const rcti *rect, uint *r_buf)
g_select_buffer.texture_u32, GPU_DATA_UNSIGNED_INT, rect, r_buf);
}
-
-/* Read a block of pixels from the depth frame buffer. */
-void DRW_framebuffer_depth_read(const rcti *rect, float *r_buf)
-{
- GPU_texture_read_rect(
- g_select_buffer.texture_depth, GPU_DATA_FLOAT, rect, r_buf);
-}
-
/** \} */