OSX: Added weak framework for linking Metal.
This commit is contained in:
parent
b5f3cc34f7
commit
caf305ceb1
@ -83,9 +83,9 @@ function bgfxProject(_name, _kind, _defines)
|
|||||||
configuration { "osx" }
|
configuration { "osx" }
|
||||||
linkoptions {
|
linkoptions {
|
||||||
"-framework Cocoa",
|
"-framework Cocoa",
|
||||||
"-framework Metal",
|
|
||||||
"-framework QuartzCore",
|
"-framework QuartzCore",
|
||||||
"-framework OpenGL",
|
"-framework OpenGL",
|
||||||
|
"-weak_framework Metal",
|
||||||
}
|
}
|
||||||
|
|
||||||
configuration { "not nacl" }
|
configuration { "not nacl" }
|
||||||
|
@ -326,9 +326,9 @@ function exampleProject(_name)
|
|||||||
configuration { "osx" }
|
configuration { "osx" }
|
||||||
linkoptions {
|
linkoptions {
|
||||||
"-framework Cocoa",
|
"-framework Cocoa",
|
||||||
"-framework Metal",
|
|
||||||
"-framework QuartzCore",
|
"-framework QuartzCore",
|
||||||
"-framework OpenGL",
|
"-framework OpenGL",
|
||||||
|
"-weak_framework Metal",
|
||||||
}
|
}
|
||||||
|
|
||||||
configuration { "ios* or tvos*" }
|
configuration { "ios* or tvos*" }
|
||||||
@ -336,10 +336,10 @@ function exampleProject(_name)
|
|||||||
linkoptions {
|
linkoptions {
|
||||||
"-framework CoreFoundation",
|
"-framework CoreFoundation",
|
||||||
"-framework Foundation",
|
"-framework Foundation",
|
||||||
"-framework Metal",
|
|
||||||
"-framework OpenGLES",
|
"-framework OpenGLES",
|
||||||
"-framework UIKit",
|
"-framework UIKit",
|
||||||
"-framework QuartzCore",
|
"-framework QuartzCore",
|
||||||
|
"-weak_framework Metal",
|
||||||
}
|
}
|
||||||
|
|
||||||
configuration { "xcode4", "ios" }
|
configuration { "xcode4", "ios" }
|
||||||
|
@ -329,10 +329,10 @@ namespace bgfx { namespace mtl
|
|||||||
: m_metalLayer(NULL)
|
: m_metalLayer(NULL)
|
||||||
, m_backBufferPixelFormatHash(0)
|
, m_backBufferPixelFormatHash(0)
|
||||||
, m_maxAnisotropy(1)
|
, m_maxAnisotropy(1)
|
||||||
|
, m_uniformBufferIndex(0)
|
||||||
, m_numWindows(1)
|
, m_numWindows(1)
|
||||||
, m_rtMsaa(false)
|
, m_rtMsaa(false)
|
||||||
, m_drawable(NULL)
|
, m_drawable(NULL)
|
||||||
, m_uniformBufferIndex(0)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user