From: Steinar H. Gunderson Date: Wed, 8 Aug 2018 19:08:04 +0000 (+0200) Subject: 16-bit depth should be plenty. X-Git-Tag: 1.8.0~76^2~127 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9b0fa051ecb1737560160d190493c25cce7e03fe;p=nageru 16-bit depth should be plenty. --- 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);