From 349dc2b0e638b182d64289e0d8168bf543f2e226 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 25 May 2014 21:06:44 +0200 Subject: [PATCH] Centered volume in viewport. --- examples/Paging/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/Paging/main.cpp b/examples/Paging/main.cpp index bc4fa222..3700c632 100644 --- a/examples/Paging/main.cpp +++ b/examples/Paging/main.cpp @@ -192,6 +192,8 @@ int main(int argc, char *argv[]) //Pass the surface to the OpenGL window openGLWidget.addMesh(mesh); + openGLWidget.setViewableRegion(reg); + //Run the message pump. return app.exec(); }