]> git.sesse.net Git - nageru/commitdiff
16-bit depth should be plenty.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 8 Aug 2018 19:08:04 +0000 (21:08 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 8 Aug 2018 22:20:08 +0000 (00:20 +0200)
flow.cpp

index 6861fa40739d8952a608364d14f1a370f43dac16..9d04b0975c813f43b85f9b1f9a5b5ddccd51aa4a 100644 (file)
--- 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);