fix a bug
This commit is contained in:
parent
108ffc25e4
commit
6fdca63aee
@ -9,7 +9,7 @@ int main(int argc, char *argv[]) {
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
QSurfaceFormat format;
|
QSurfaceFormat format;
|
||||||
format.setRenderableType(QSurfaceFormat::OpenGL);
|
format.setRenderableType(QSurfaceFormat::OpenGL);
|
||||||
#ifndef QT_DEBUG
|
#ifdef QT_DEBUG
|
||||||
qDebug("Debug build");
|
qDebug("Debug build");
|
||||||
format.setOption(QSurfaceFormat::DebugContext);
|
format.setOption(QSurfaceFormat::DebugContext);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user