summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Olszak <olszak.tomasz@gmail.com>2013-11-25 22:07:59 +0100
committerTomasz Olszak <olszak.tomasz@gmail.com>2014-12-15 23:44:47 +0100
commit9416ebd239996261abb67cdc7782260b0dee4654 (patch)
tree559978aee556e748b56a9e6bfd098f197091f5e1
parentfdf004803d036583f58ceb832803cfe39c6ba6d8 (diff)
downloadqtdeclarative-9416ebd239996261abb67cdc7782260b0dee4654.tar.gz
qtdeclarative-9416ebd239996261abb67cdc7782260b0dee4654.tar.bz2
qtdeclarative-9416ebd239996261abb67cdc7782260b0dee4654.zip
Workaround for Tizen emulator like for Nouveau driver.
Index buffer object is broken on Tizen Emulator due to some translation layer between host GPU and qemu. Change-Id: I427fc71391c05c1a5513f42532f2d82595cb4893 Reviewed-by: Jarosław Staniek <staniek@kde.org>
-rw-r--r--src/quick/scenegraph/qsgcontext.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index 90102f111..c2534871b 100644
--- a/src/quick/scenegraph/qsgcontext.cpp
+++ b/src/quick/scenegraph/qsgcontext.cpp
@@ -650,7 +650,7 @@ void QSGRenderContext::initialize(QOpenGLContext *context)
}
m_sg->renderContextInitialized(this);
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) && !defined(Q_OS_LINUX_TIZEN_SIMULATOR)
const char *vendor = (const char *) funcs->glGetString(GL_VENDOR);
if (strstr(vendor, "nouveau"))
m_brokenIBOs = true;
@@ -661,6 +661,10 @@ void QSGRenderContext::initialize(QOpenGLContext *context)
m_brokenIBOs = true;
#endif
+#ifdef Q_OS_LINUX_TIZEN_SIMULATOR
+ m_brokenIBOs = true;
+#endif
+
emit initialized();
}