]> git.tdb.fi Git - libs/gl.git/commitdiff
Flush the shader data of View's Renderer after rendering
authorMikko Rasa <tdb@tdb.fi>
Sun, 9 Feb 2020 22:01:58 +0000 (00:01 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 9 Feb 2020 22:01:58 +0000 (00:01 +0200)
In a very simple application with only a single renderable omitting the
flush would prevent shader data from being updated.

source/view.cpp

index 005904f284b74cbb6c6e9b4343584f882eca70fe..d0d3542835448352f66be17d6f15f4735253c263 100644 (file)
@@ -49,6 +49,7 @@ void View::render(Renderer &renderer)
                content->setup_frame(renderer);
                content->render(renderer);
                content->finish_frame();
+               renderer.flush_shader_data();
        }
 }