summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-02-01 15:12:10 -0500
committerKonstantin Käfer <mail@kkaefer.com>2018-05-24 11:19:59 +0200
commit4067a61c80b90e656f129f34f4479fa0c7262b91 (patch)
treea51fd3d6c919faa4b80041347ff0f468e21bb860 /src
parent0212fd385cd991ef37c0efe0c1210948fd4d36fc (diff)
downloadqtlocation-mapboxgl-4067a61c80b90e656f129f34f4479fa0c7262b91.tar.gz
[core] wrap glGetString in `MBGL_CHECK_ERROR` too
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/gl/context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp
index c6352d3e84..4afbe5af1e 100644
--- a/src/mbgl/gl/context.cpp
+++ b/src/mbgl/gl/context.cpp
@@ -287,7 +287,7 @@ UniqueTexture Context::createTexture() {
bool Context::supportsVertexArrays() const {
static bool blacklisted = []() {
- const std::string renderer = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
+ const std::string renderer = reinterpret_cast<const char*>(MBGL_CHECK_ERROR(glGetString(GL_RENDERER)));
Log::Info(Event::General, "GPU Identifier: %s", renderer.c_str());
@@ -318,7 +318,7 @@ bool Context::supportsProgramBinaries() const {
// https://chromium.googlesource.com/chromium/src/gpu/+/master/config/gpu_driver_bug_list.json#2316
// Blacklist Vivante GC4000 due to bugs when linking loaded programs:
// https://github.com/mapbox/mapbox-gl-native/issues/10704
- const std::string renderer = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
+ const std::string renderer = reinterpret_cast<const char*>(MBGL_CHECK_ERROR(glGetString(GL_RENDERER)));
if (renderer.find("Adreno (TM) 3") != std::string::npos
|| renderer.find("Adreno (TM) 4") != std::string::npos
|| renderer.find("Adreno (TM) 5") != std::string::npos