summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/barstest/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/barstest/main.cpp b/tests/barstest/main.cpp
index e18aaed1..9147735e 100644
--- a/tests/barstest/main.cpp
+++ b/tests/barstest/main.cpp
@@ -42,7 +42,14 @@ int main(int argc, char **argv)
QVBoxLayout *vLayout = new QVBoxLayout();
QVBoxLayout *vLayout2 = new QVBoxLayout();
- Q3DBars *widgetchart = new Q3DBars();
+ // For testing custom surface format
+ QSurfaceFormat surfaceFormat;
+ surfaceFormat.setDepthBufferSize(24);
+#if !defined(QT_OPENGL_ES_2)
+ surfaceFormat.setSamples(8);
+#endif
+
+ Q3DBars *widgetchart = new Q3DBars(&surfaceFormat);
QSize screenSize = widgetchart->screen()->size();
QWidget *container = QWidget::createWindowContainer(widgetchart);