From 9b0fa051ecb1737560160d190493c25cce7e03fe Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 8 Aug 2018 21:08:04 +0200 Subject: [PATCH] 16-bit depth should be plenty. --- flow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow.cpp b/flow.cpp index 6861fa4..9d04b09 100644 --- a/flow.cpp +++ b/flow.cpp @@ -1539,7 +1539,7 @@ GLuint Interpolate::exec(GLuint tex0, GLuint tex1, GLuint forward_flow_tex, GLui int flow_height = height >> flow_level; GLuint flow_tex = pool.get_texture(GL_RG16F, flow_width, flow_height); - GLuint depth_rb = pool.get_renderbuffer(GL_DEPTH_COMPONENT32F, flow_width, flow_height); // Used for ranking flows. + GLuint depth_rb = pool.get_renderbuffer(GL_DEPTH_COMPONENT16, flow_width, flow_height); // Used for ranking flows. { ScopedTimer timer("Splat", &total_timer); -- 2.39.2