Browse Source

Fixed OSX build.

Branimir Karadžić 8 years ago
parent
commit
aba8438683
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/renderer_mtl.mm

+ 3 - 3
src/renderer_mtl.mm

@@ -1926,7 +1926,7 @@ namespace bgfx { namespace mtl
 
 					for (uint8_t ii = 0; ii < Attrib::Count; ++ii)
 					{
-						if (0 == bx::strncmp(s_attribName[ii],name))
+						if (0 == bx::strCmp(s_attribName[ii],name))
 						{
 							m_attributes[ii] = loc;
 							m_used[used++] = ii;
@@ -1936,7 +1936,7 @@ namespace bgfx { namespace mtl
 
 					for (uint32_t ii = 0; ii < BX_COUNTOF(s_instanceDataName); ++ii)
 					{
-						if (0 == bx::strncmp(s_instanceDataName[ii],name))
+						if (0 == bx::strCmp(s_instanceDataName[ii],name))
 						{
 							m_instanceData[instUsed++] = loc;
 						}
@@ -2211,7 +2211,7 @@ namespace bgfx { namespace mtl
 							if (arg.active)
 							{
 								if (arg.type == MTLArgumentTypeBuffer
-								&&  0 == bx::strncmp(utf8String(arg.name), SHADER_UNIFORM_NAME) )
+								&&  0 == bx::strCmp(utf8String(arg.name), SHADER_UNIFORM_NAME) )
 								{
 									BX_CHECK( arg.index == 0, "Uniform buffer must be in the buffer slot 0.");
 									BX_CHECK( MTLDataTypeStruct == arg.bufferDataType, "%s's type must be a struct",SHADER_UNIFORM_NAME );