From 7d9addb6db0607359cf16690eb40d6ee4fb0d488 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Wed, 25 Jan 2012 08:39:42 +0300 Subject: [PATCH] [android] Reverted temporary debug logging --- yg/base_texture.cpp | 6 ------ yg/framebuffer.cpp | 7 ------- yg/indexbuffer.cpp | 1 - yg/renderbuffer.cpp | 7 ------- yg/utils.cpp | 13 ------------- yg/vertexbuffer.cpp | 1 - 6 files changed, 35 deletions(-) diff --git a/yg/base_texture.cpp b/yg/base_texture.cpp index 3ac1b3d2d1..38f5638b03 100644 --- a/yg/base_texture.cpp +++ b/yg/base_texture.cpp @@ -13,10 +13,8 @@ namespace yg void BaseTexture::init() const { OGLCHECK(glGenTextures(1, &m_id)); - LOG(LDEBUG, ("glGenTextures", m_id)); OGLCHECK(glBindTexture(GL_TEXTURE_2D, m_id)); - LOG(LDEBUG, ("glBindTexture", m_id)); OGLCHECK(glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT)); OGLCHECK(glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT)); @@ -75,7 +73,6 @@ namespace yg { int id; OGLCHECK(glGetIntegerv(GL_TEXTURE_BINDING_2D, &id)); - LOG(LDEBUG, ("glGetIntegerv", id)); return id; } @@ -85,10 +82,7 @@ namespace yg queue->processFn(bind(&BaseTexture::makeCurrent, this, (yg::gl::PacketsQueue*)0)); if (current() != m_id) - { OGLCHECK(glBindTexture(GL_TEXTURE_2D, m_id)); - LOG(LDEBUG, ("glBindTexture", m_id)); - } } unsigned BaseTexture::id() const diff --git a/yg/framebuffer.cpp b/yg/framebuffer.cpp index ffe3fe5bc1..ae6c69a811 100644 --- a/yg/framebuffer.cpp +++ b/yg/framebuffer.cpp @@ -19,7 +19,6 @@ namespace yg { int id; OGLCHECK(glGetIntegerv(GL_FRAMEBUFFER_BINDING_MWM, &id)); - LOG(LDEBUG, ("glGetIntegerv", id)); return id; } @@ -28,10 +27,7 @@ namespace yg if (defaultFB) m_id = 0; else - { OGLCHECK(glGenFramebuffersFn(1, &m_id)); - LOG(LDEBUG, ("glGenFramebuffers", m_id)); - } } FrameBuffer::~FrameBuffer() @@ -43,10 +39,7 @@ namespace yg void FrameBuffer::makeCurrent() { if (m_id != current()) - { OGLCHECK(glBindFramebufferFn(GL_FRAMEBUFFER_MWM, m_id)); - LOG(LDEBUG, ("glBindFramebuffer", m_id)); - } if (m_depthBuffer) m_depthBuffer->attachToFrameBuffer(); diff --git a/yg/indexbuffer.cpp b/yg/indexbuffer.cpp index 370be8f6ea..218ae5db90 100644 --- a/yg/indexbuffer.cpp +++ b/yg/indexbuffer.cpp @@ -18,7 +18,6 @@ namespace yg { int id; OGLCHECK(glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &id)); - LOG(LDEBUG, ("glGetIntegerv", id)); return id; } diff --git a/yg/renderbuffer.cpp b/yg/renderbuffer.cpp index 23c4d48557..2dc70ea41c 100644 --- a/yg/renderbuffer.cpp +++ b/yg/renderbuffer.cpp @@ -18,7 +18,6 @@ namespace yg { int id; OGLCHECK(glGetIntegerv(GL_RENDERBUFFER_BINDING_MWM, &id)); - LOG(LDEBUG, ("glGetIntegerv", id)); return id; } @@ -28,7 +27,6 @@ namespace yg // if (!m_isDepthBuffer) { OGLCHECK(glGenRenderbuffersFn(1, &m_id)); - LOG(LDEBUG, ("glGenRenderbuffers", m_id)); makeCurrent(); @@ -39,8 +37,6 @@ namespace yg internalFormat, m_width, m_height)); - LOG(LDEBUG, ("glRenderbufferStorage", m_isDepthBuffer ? "GL_DEPTH_COMPONENT16_MWM" : "GL_RGBA8_MWM", - m_width, m_height)); } /* else { @@ -109,10 +105,7 @@ namespace yg void RenderBuffer::makeCurrent() const { if (m_id != current()) - { OGLCHECK(glBindRenderbufferFn(GL_RENDERBUFFER_MWM, m_id)); - LOG(LDEBUG, ("glBindRenderbuffer", m_id)); - } } bool RenderBuffer::isDepthBuffer() const diff --git a/yg/utils.cpp b/yg/utils.cpp index e66a4fe8dd..3c96b3403c 100644 --- a/yg/utils.cpp +++ b/yg/utils.cpp @@ -14,7 +14,6 @@ namespace yg void setupCoordinates(size_t width, size_t height, bool doSwap /*= true*/) { OGLCHECK(glViewport(0, 0, width, height)); - LOG(LDEBUG, ("glViewport", width, height)); OGLCHECK(glMatrixMode(GL_MODELVIEW)); OGLCHECK(glLoadIdentity()); @@ -24,26 +23,14 @@ namespace yg #ifdef OMIM_GL_ES if (!doSwap) - { OGLCHECK(glOrthof(0, width, 0, height, -yg::maxDepth, yg::maxDepth)); - LOG(LDEBUG, ("glOrthof", 0, width, 0, height, -yg::maxDepth, yg::maxDepth)); - } else - { OGLCHECK(glOrthof(0, width, height, 0, -yg::maxDepth, yg::maxDepth)); - LOG(LDEBUG, ("glOrthof", 0, width, height, 0, -yg::maxDepth, yg::maxDepth)); - } #else if (!doSwap) - { OGLCHECK(glOrtho(0, width, 0, height, -yg::maxDepth, yg::maxDepth)); - LOG(LDEBUG, ("glOrtho", 0, width, 0, height, -yg::maxDepth, yg::maxDepth)); - } else - { OGLCHECK(glOrtho(0, width, height, 0, -yg::maxDepth, yg::maxDepth)); - LOG(LDEBUG, ("glOrtho", 0, width, height, 0, -yg::maxDepth, yg::maxDepth)); - } #endif } } diff --git a/yg/vertexbuffer.cpp b/yg/vertexbuffer.cpp index 006744a3c6..b9537b8c7b 100644 --- a/yg/vertexbuffer.cpp +++ b/yg/vertexbuffer.cpp @@ -18,7 +18,6 @@ namespace yg { int id; OGLCHECK(glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &id)); - LOG(LDEBUG, ("glGetIntegerv", id)); return id; }