| 11 | |
| 12 | |
| 13 | QSurfaceFormat defaultFormat() |
| 14 | { |
| 15 | QSurfaceFormat format; |
| 16 | format.setProfile(QSurfaceFormat::CoreProfile); |
| 17 | #ifndef NDEBUG |
| 18 | format.setOption(QSurfaceFormat::DebugContext); |
| 19 | #endif |
| 20 | return format; |
| 21 | } |
| 22 | |
| 23 | WindowQt::WindowQt() |
| 24 | : WindowQt(defaultFormat()) |