Brad DavisAdding missing files77b45e211 years agoHistory
16 lines · 560 B · C++
RawDownload
#include "GLHelpers.h"  QSurfaceFormat getDefaultOpenGlSurfaceFormat() {   QSurfaceFormat format;   // Qt Quick may need a depth and stencil buffer. Always make sure these are available.   format.setDepthBufferSize(DEFAULT_GL_DEPTH_BUFFER_BITS);   format.setStencilBufferSize(DEFAULT_GL_STENCIL_BUFFER_BITS);   format.setVersion(4, 1);#ifdef DEBUG   format.setOption(QSurfaceFormat::DebugContext);#endif   // FIXME move to core as soon as possible   format.setProfile(QSurfaceFormat::OpenGLContextProfile::CompatibilityProfile);   return format;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t