#common #bug #convert: fix command line convertion of PLI for linux (#2657)
Qt documentation for QOffscreenSurface: Due to the fact that QOffscreenSurface is backed by a QWindow on some platforms, cross-platform applications must ensure that create() is only called on the main (GUI) thread. The QOffscreenSurface is then safe to be used with makeCurrent() on other threads, but the initialization and destruction must always happen on the main (GUI) thread.
This commit is contained in:
parent
8b3dea0166
commit
3316edbab0
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,10 @@
|
||||||
#include "tvectorrenderdata.h"
|
#include "tvectorrenderdata.h"
|
||||||
#include "tofflinegl.h"
|
#include "tofflinegl.h"
|
||||||
|
|
||||||
|
#if defined(LINUX)
|
||||||
|
#include <QGuiApplication>
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace TCli;
|
using namespace TCli;
|
||||||
|
|
||||||
|
@ -355,6 +359,10 @@ void convert(const TFilePath &source, const TFilePath &dest,
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
#if defined(LINUX)
|
||||||
|
QGuiApplication app(argc, argv);
|
||||||
|
#endif
|
||||||
|
|
||||||
TEnv::setRootVarName(rootVarName);
|
TEnv::setRootVarName(rootVarName);
|
||||||
TEnv::setSystemVarPrefix(systemVarPrefix);
|
TEnv::setSystemVarPrefix(systemVarPrefix);
|
||||||
TFilePath fp = TEnv::getStuffDir();
|
TFilePath fp = TEnv::getStuffDir();
|
||||||
|
|
Loading…
Reference in a new issue