summaryrefslogtreecommitdiff
path: root/src/imports/location/qdeclarative3dgraphicsgeomap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/location/qdeclarative3dgraphicsgeomap.cpp')
-rw-r--r--src/imports/location/qdeclarative3dgraphicsgeomap.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/imports/location/qdeclarative3dgraphicsgeomap.cpp b/src/imports/location/qdeclarative3dgraphicsgeomap.cpp
index 70b3e601..29930bc4 100644
--- a/src/imports/location/qdeclarative3dgraphicsgeomap.cpp
+++ b/src/imports/location/qdeclarative3dgraphicsgeomap.cpp
@@ -359,18 +359,6 @@ void QDeclarative3DGraphicsGeoMap::beforeRendering()
if (!isVisible())
return;
- // temporary check until refactor branch is fully functional again
- static bool render = true;
- if (!render)
- return;
- const QGLContext* context = QGLContext::currentContext();
- if (!context || !context->device()) {
- render = false;
- qmlInfo(this) << tr("GL paint device is NULL. Will not render the map.");
- return;
- }
- // end of temporary check
-
QGLPainter painter;
if (!painter.begin()) {
qmlInfo(this) << tr("GL graphics system is not active; cannot use 3D items");