mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 05:43:12 +01:00
fix ios entry (#3027)
When initWithFrame is being called s_ctx has not been created yet. Fix with correct assign order.
This commit is contained in:
@@ -212,8 +212,6 @@ using namespace entry;
|
||||
return nil;
|
||||
}
|
||||
|
||||
s_ctx->m_window = self.layer;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@@ -335,6 +333,7 @@ using namespace entry;
|
||||
[m_view setContentScaleFactor: scaleFactor ];
|
||||
|
||||
s_ctx = new Context((uint32_t)(scaleFactor*rect.size.width), (uint32_t)(scaleFactor*rect.size.height));
|
||||
s_ctx->m_window = m_view.layer;
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user