From 6bdf5c4bad3257bd9a7c88af7a905cd54fd81105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 21 Jul 2015 18:15:12 -0700 Subject: [PATCH] Cleanup. --- examples/common/entry/entry_ios.mm | 6 +++--- include/bgfx.h | 2 +- src/glcontext_eagl.mm | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/common/entry/entry_ios.mm b/examples/common/entry/entry_ios.mm index 11267cb1..cee480d9 100644 --- a/examples/common/entry/entry_ios.mm +++ b/examples/common/entry/entry_ios.mm @@ -171,9 +171,9 @@ using namespace entry; - (void)layoutSubviews { - uint32_t frameW = (uint32_t)(self.contentScaleFactor * self.frame.size.width); - uint32_t frameH = (uint32_t)(self.contentScaleFactor * self.frame.size.height); - s_ctx->m_eventQueue.postSizeEvent(s_defaultWindow, frameW, frameH); + uint32_t frameW = (uint32_t)(self.contentScaleFactor * self.frame.size.width); + uint32_t frameH = (uint32_t)(self.contentScaleFactor * self.frame.size.height); + s_ctx->m_eventQueue.postSizeEvent(s_defaultWindow, frameW, frameH); } - (void)start diff --git a/include/bgfx.h b/include/bgfx.h index 6e14f1ae..504a34df 100644 --- a/include/bgfx.h +++ b/include/bgfx.h @@ -14,7 +14,7 @@ /// #define BGFX_HANDLE(_name) \ struct _name { uint16_t idx; }; \ - inline bool isValid(_name _handle) { return bgfx::invalidHandle != _handle.idx; } + inline bool isValid(_name _handle) { return bgfx::invalidHandle != _handle.idx; } #define BGFX_INVALID_HANDLE { bgfx::invalidHandle } diff --git a/src/glcontext_eagl.mm b/src/glcontext_eagl.mm index 4805820a..0ff5e637 100644 --- a/src/glcontext_eagl.mm +++ b/src/glcontext_eagl.mm @@ -99,7 +99,7 @@ namespace bgfx { namespace gl BX_UNUSED(_width, _height, _flags); BX_TRACE("resize context"); - if (0 != m_fbo) + if (0 != m_fbo) { GL_CHECK(glDeleteFramebuffers(1, &m_fbo) ); m_fbo = 0; @@ -117,7 +117,7 @@ namespace bgfx { namespace gl m_depthStencilRbo = 0; } - GL_CHECK(glGenFramebuffers(1, &m_fbo) ); + GL_CHECK(glGenFramebuffers(1, &m_fbo) ); GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo) ); GL_CHECK(glGenRenderbuffers(1, &m_colorRbo) );