Skip to content

Commit

Permalink
Restore anti-aliased surface format
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sonestedt committed Sep 13, 2024
1 parent b8bbf1d commit d925ae9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/cellink/widgets/qt3dwindow_ci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,22 +136,20 @@ Qt3DWindow::Qt3DWindow(QScreen* screen)

resize(1024, 768);

/*
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
#ifdef QT_OPENGL_ES_2
format.setRenderableType(QSurfaceFormat::OpenGLES);
#else
if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGL) {
auto format = QSurfaceFormat::defaultFormat();
if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGLES) {
format.setRenderableType(QSurfaceFormat::OpenGLES);
} else if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGL) {
format.setVersion(4, 3);
format.setProfile(QSurfaceFormat::CoreProfile);
}
#endif

format.setDepthBufferSize(24);
format.setSamples(4);
format.setStencilBufferSize(8);
setFormat(format);
*/
// QSurfaceFormat::setDefaultFormat(format);
// must set default format to see change?!
QSurfaceFormat::setDefaultFormat(format);

d->m_aspectEngine->registerAspect(d->m_renderAspect);
d->m_aspectEngine->registerAspect(d->m_inputAspect);
Expand Down

0 comments on commit d925ae9

Please sign in to comment.