diff options
author | Lauren Budorick <lauren@mapbox.com> | 2017-09-21 12:09:34 -0700 |
---|---|---|
committer | Lauren Budorick <lauren@mapbox.com> | 2017-09-21 12:09:34 -0700 |
commit | f0cabcd35dffcf71b55f89ec7b4b502170fa9046 (patch) | |
tree | 47d812edee50fc44a8c7deaaff4b975a46884425 | |
parent | 9e786c19b496a4b94b0db2d06a8ef6be11ad07c1 (diff) | |
download | qtlocation-mapboxgl-upstream/preserve-depth.tar.gz |
revert debug loggingupstream/preserve-depth
-rw-r--r-- | src/mbgl/gl/context.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp index 15c6035fd4..9a7fa7862c 100644 --- a/src/mbgl/gl/context.cpp +++ b/src/mbgl/gl/context.cpp @@ -462,11 +462,8 @@ Context::createFramebuffer(const Texture& color, } auto fbo = createFramebuffer(); bindFramebuffer = fbo; - // TODO: revert this; just for debugging on CI: - GLuint depthInt = depthTarget.renderbuffer; - Log::Info(Event::General, "bound framebuffer: %d; renderbuffer name: %d", bindFramebuffer, depthInt); MBGL_CHECK_ERROR(glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, color.texture, 0)); - MBGL_CHECK_ERROR(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, depthInt)); + MBGL_CHECK_ERROR(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, depthTarget.renderbuffer)); checkFramebuffer(); return { depthTarget.size, std::move(fbo) }; } |