mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 04:53:28 +02:00
experimenting
This commit is contained in:
parent
a6e8924cf0
commit
cc4d04aaef
1 changed files with 10 additions and 8 deletions
|
@ -109,14 +109,6 @@ TestWindow::TestWindow() {
|
|||
Setting::init();
|
||||
|
||||
setSurfaceType(QSurface::OpenGLSurface);
|
||||
QSurfaceFormat format;
|
||||
format.setDepthBufferSize(24);
|
||||
format.setStencilBufferSize(8);
|
||||
format.setVersion(4, 5);
|
||||
format.setProfile(QSurfaceFormat::OpenGLContextProfile::CoreProfile);
|
||||
format.setOption(QSurfaceFormat::DebugContext);
|
||||
QSurfaceFormat::setDefaultFormat(format);
|
||||
setFormat(format);
|
||||
|
||||
qmlRegisterType<QTestItem>("Hifi", 1, 0, "TestItem");
|
||||
|
||||
|
@ -301,6 +293,16 @@ void TestWindow::resizeEvent(QResizeEvent* ev) {
|
|||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
QSurfaceFormat format;
|
||||
format.setDepthBufferSize(24);
|
||||
format.setStencilBufferSize(8);
|
||||
format.setVersion(4, 1);
|
||||
format.setProfile(QSurfaceFormat::OpenGLContextProfile::CoreProfile);
|
||||
format.setOption(QSurfaceFormat::DebugContext);
|
||||
QSurfaceFormat::setDefaultFormat(format);
|
||||
// setFormat(format);
|
||||
|
||||
QGuiApplication app(argc, argv);
|
||||
TestWindow window;
|
||||
return app.exec();
|
||||
|
|
Loading…
Reference in a new issue