summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsgraphicslimits_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-04-09 15:30:11 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2018-04-10 08:51:53 +0000
commit96084bf2a900dd94c2aa4eaf65b1733875b7ae4e (patch)
tree348d6d202a0785f380f19f3d0bc417b9d75897d6 /src/runtime/q3dsgraphicslimits_p.h
parent87613492bee8365cd45e8ade4b0d7e9b77dfe9b1 (diff)
Shuffle around Q3DSGraphicsLimits usage
Drop QOpenGLContext usage here and there in the runtime code. Also allows autotests to see if the proper versioned context creation was functioning and allows simplifying the checks in shared.h. Change-Id: I6861165d92c36e2cf7f7e56cf0004f624fbbd83c Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/runtime/q3dsgraphicslimits_p.h')
-rw-r--r--src/runtime/q3dsgraphicslimits_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/q3dsgraphicslimits_p.h b/src/runtime/q3dsgraphicslimits_p.h
index a648290..921eace 100644
--- a/src/runtime/q3dsgraphicslimits_p.h
+++ b/src/runtime/q3dsgraphicslimits_p.h
@@ -41,20 +41,28 @@
// We mean it.
//
+#include "q3dsruntimeglobal_p.h"
#include <QByteArray>
+#include <QSurfaceFormat>
QT_BEGIN_NAMESPACE
struct Q3DSGraphicsLimits {
+ bool versionedContextFailed = false;
int maxDrawBuffers = 4;
bool multisampleTextureSupported = false;
QByteArray renderer;
QByteArray vendor;
QByteArray version;
+ QSurfaceFormat format;
};
Q_DECLARE_TYPEINFO(Q3DSGraphicsLimits, Q_MOVABLE_TYPE);
+namespace Q3DS {
+Q3DSV_PRIVATE_EXPORT Q3DSGraphicsLimits graphicsLimits();
+}
+
QT_END_NAMESPACE
#endif