diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-12-12 12:26:08 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-12-12 12:37:55 +0100 |
commit | abf702046be5f03eb9153f120ba356d860bb94f3 (patch) | |
tree | 65f77755a7f10bef81da706300ae6980278eb179 | |
parent | 6cabaf02302c9e3ee6ac293217e74fcb0317dff4 (diff) | |
download | qtlocation-mapboxgl-abf702046be5f03eb9153f120ba356d860bb94f3.tar.gz |
use correct enum
-rw-r--r-- | platform/default/glfw_view.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index e33f8eed15..8479aea3d8 100644 --- a/platform/default/glfw_view.cpp +++ b/platform/default/glfw_view.cpp @@ -385,9 +385,10 @@ void show_color_debug_image(std::string name, const char *data, size_t logical_w float x_scale = (float)fb_width / (float)width; float y_scale = (float)fb_height / (float)height; + MBGL_CHECK_ERROR(glClearColor(0.8, 0.8, 0.8, 1)); MBGL_CHECK_ERROR(glClear(GL_COLOR_BUFFER_BIT)); MBGL_CHECK_ERROR(glEnable(GL_BLEND)); - MBGL_CHECK_ERROR(glBlendFunc(GL_ALPHA, GL_ONE_MINUS_SRC_ALPHA)); + MBGL_CHECK_ERROR(glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)); MBGL_CHECK_ERROR(glPixelZoom(x_scale, -y_scale)); MBGL_CHECK_ERROR(glRasterPos2f(-1.0f, 1.0f)); |