This commit is contained in:
Branimir Karadžić 2015-07-21 18:15:12 -07:00
parent 66678bce85
commit 6bdf5c4bad
3 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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 }

View file

@ -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) );