mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed OSX build.
This commit is contained in:
@@ -1028,7 +1028,7 @@ VK_IMPORT_DEVICE
|
||||
{
|
||||
}
|
||||
|
||||
VkResult createSurface()
|
||||
VkResult createSurface(const Resolution& _resolution)
|
||||
{
|
||||
VkResult result = VK_SUCCESS;
|
||||
|
||||
@@ -1099,7 +1099,7 @@ VK_IMPORT_DEVICE
|
||||
NSView* contentView = (NSView*)window.contentView;
|
||||
CAMetalLayer* layer = [CAMetalLayer layer];
|
||||
|
||||
if (_init.resolution.reset & BGFX_RESET_HIDPI)
|
||||
if (_resolution.reset & BGFX_RESET_HIDPI)
|
||||
{
|
||||
layer.contentsScale = [window backingScaleFactor];
|
||||
}
|
||||
@@ -2188,7 +2188,7 @@ VK_IMPORT_DEVICE
|
||||
|
||||
errorState = ErrorState::CommandQueueCreated;
|
||||
|
||||
result = createSurface();
|
||||
result = createSurface(_init.resolution);
|
||||
|
||||
if (VK_SUCCESS != result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user