mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 04:34:38 +02:00
Small fixes
This commit is contained in:
parent
a776c415eb
commit
282ae7b6f9
3 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
set(TARGET_NAME native-lib)
|
||||
setup_hifi_library(Gui Qml Quick)
|
||||
#link_hifi_libraries(shared networking gl gpu gpu-gles image fbx render-utils physics entities octree audio midi recording controllers script-engine ui)
|
||||
link_hifi_libraries(shared networking gl ui)
|
||||
link_hifi_libraries(shared networking gl gpu gpu-gles image fbx render-utils physics entities octree audio midi recording controllers script-engine ui)
|
||||
#link_hifi_libraries(shared networking gl ui)
|
||||
|
||||
target_link_libraries(native-lib android log m)
|
||||
target_opengl()
|
||||
|
|
|
@ -52,7 +52,7 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
|
|||
|
||||
_offscreenSurface->setFormat(_context->format());
|
||||
_offscreenSurface->create();
|
||||
#if !defined(Q_OS_ANDROID)
|
||||
#if defined(Q_OS_ANDROID)
|
||||
if (!_context->makeCurrent(_offscreenSurface)) {
|
||||
qFatal("Unable to make offscreen surface current");
|
||||
}
|
||||
|
|
|
@ -2247,7 +2247,7 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co
|
|||
QTimer timeout;
|
||||
timeout.setSingleShot(true);
|
||||
timeout.start(SANDBOX_TIMEOUT);
|
||||
connect(&timeout, &QTimer::timeout, [&sandbox, scriptOrURL]{
|
||||
connect(&timeout, &QTimer::timeout, [=, &sandbox]{
|
||||
qCDebug(scriptengine) << "ScriptEngine::entityScriptContentAvailable timeout(" << scriptOrURL << ")";
|
||||
|
||||
// Guard against infinite loops and non-performant code
|
||||
|
|
Loading…
Reference in a new issue