From: Steinar H. Gunderson Date: Fri, 6 Jul 2018 23:04:28 +0000 (+0200) Subject: Use fp16 for the densification output texture; evidently does not matter for quality. X-Git-Tag: 1.8.0~76^2~235 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9c51e8054090bdee99797c9e421441cf9ae71140;p=nageru Use fp16 for the densification output texture; evidently does not matter for quality. --- diff --git a/flow.cpp b/flow.cpp index ca3ce39..dd22a58 100644 --- a/flow.cpp +++ b/flow.cpp @@ -524,8 +524,7 @@ int main(void) // Set up an output texture (initially zero). GLuint dense_flow_tex; glCreateTextures(GL_TEXTURE_2D, 1, &dense_flow_tex); - //glTextureStorage2D(dense_flow_tex, 1, GL_RGB16F, level_width, level_height); - glTextureStorage2D(dense_flow_tex, 1, GL_RGBA32F, level_width, level_height); + glTextureStorage2D(dense_flow_tex, 1, GL_RGB16F, level_width, level_height); // And draw. densify.exec(tex0_view, tex1_view, flow_out_tex, dense_flow_tex, level_width, level_height, width_patches, height_patches);