From be74509b31b26e714c6b380e17ed3935ec0b6cf0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Jun 2014 23:23:00 +0300 Subject: In modernopengl add support for buffered draw tile collection. This is first cached function implemented in modernopengl. Also add support for bind buffer attributes. Add finalize method to convert any cached data into data for GPU. --- src/gui/widgets/shortcutcontainer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/widgets/shortcutcontainer.cpp') diff --git a/src/gui/widgets/shortcutcontainer.cpp b/src/gui/widgets/shortcutcontainer.cpp index 313e37262..eeca4dacd 100644 --- a/src/gui/widgets/shortcutcontainer.cpp +++ b/src/gui/widgets/shortcutcontainer.cpp @@ -134,6 +134,7 @@ void ShortcutContainer::drawBackground(Graphics *g) (i % mGridWidth) * mBoxWidth, (i / mGridWidth) * mBoxHeight); } + g->finalize(mVertexes); } g->drawTileCollection(mVertexes); } -- cgit v1.2.3-70-g09d2