OSX: Added weak framework for linking Metal.

This commit is contained in:
Branimir Karadžić 2015-12-23 14:26:20 -08:00
parent b5f3cc34f7
commit caf305ceb1
3 changed files with 5 additions and 5 deletions

View File

@ -83,9 +83,9 @@ function bgfxProject(_name, _kind, _defines)
configuration { "osx" }
linkoptions {
"-framework Cocoa",
"-framework Metal",
"-framework QuartzCore",
"-framework OpenGL",
"-weak_framework Metal",
}
configuration { "not nacl" }

View File

@ -326,9 +326,9 @@ function exampleProject(_name)
configuration { "osx" }
linkoptions {
"-framework Cocoa",
"-framework Metal",
"-framework QuartzCore",
"-framework OpenGL",
"-weak_framework Metal",
}
configuration { "ios* or tvos*" }
@ -336,10 +336,10 @@ function exampleProject(_name)
linkoptions {
"-framework CoreFoundation",
"-framework Foundation",
"-framework Metal",
"-framework OpenGLES",
"-framework UIKit",
"-framework QuartzCore",
"-weak_framework Metal",
}
configuration { "xcode4", "ios" }

View File

@ -329,10 +329,10 @@ namespace bgfx { namespace mtl
: m_metalLayer(NULL)
, m_backBufferPixelFormatHash(0)
, m_maxAnisotropy(1)
, m_uniformBufferIndex(0)
, m_numWindows(1)
, m_rtMsaa(false)
, m_drawable(NULL)
, m_uniformBufferIndex(0)
{
}
@ -1231,7 +1231,7 @@ namespace bgfx { namespace mtl
OcclusionQueryMTL m_occlusionQuery;
Buffer m_uniformBuffer;
Buffer m_uniformBuffer;
Buffer m_uniformBuffers[UNIFORM_BUFFER_COUNT];
uint32_t m_uniformBufferVertexOffset;
uint32_t m_uniformBufferFragmentOffset;