From b7a28b315a0ba85f9796845718e578abf5379f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Mon, 7 Sep 2020 21:08:31 +0200 Subject: GPUFramebuffer: Make GPU_framebuffer_read_depth more flexible This is to make use of it in selection code. --- source/blender/gpu/GPU_framebuffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/gpu/GPU_framebuffer.h') diff --git a/source/blender/gpu/GPU_framebuffer.h b/source/blender/gpu/GPU_framebuffer.h index f4599ac44bb..c0391d96e06 100644 --- a/source/blender/gpu/GPU_framebuffer.h +++ b/source/blender/gpu/GPU_framebuffer.h @@ -188,7 +188,8 @@ void GPU_framebuffer_clear(GPUFrameBuffer *fb, void GPU_framebuffer_multi_clear(GPUFrameBuffer *fb, const float (*clear_cols)[4]); -void GPU_framebuffer_read_depth(GPUFrameBuffer *fb, int x, int y, int w, int h, float *data); +void GPU_framebuffer_read_depth( + GPUFrameBuffer *fb, int x, int y, int w, int h, eGPUDataFormat format, void *data); void GPU_framebuffer_read_color(GPUFrameBuffer *fb, int x, int y, -- cgit v1.2.3