mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Cleanup.
This commit is contained in:
parent
66678bce85
commit
6bdf5c4bad
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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 }
|
||||
|
||||
|
|
|
@ -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) );
|
||||
|
|
Loading…
Reference in a new issue