mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
shaderc: Rename BITANGENT semantics to BINORMAL when building with D3D9 SM3 compiler.
This commit is contained in:
parent
f4123e6483
commit
100673b736
1 changed files with 6 additions and 0 deletions
|
@ -997,6 +997,12 @@ int main(int _argc, const char* _argv[])
|
|||
var.m_name.assign(name, bx::strword(name)-name);
|
||||
var.m_semantics.assign(semantics, bx::strword(semantics)-semantics);
|
||||
|
||||
if (d3d == 9
|
||||
&& var.m_semantics == "BITANGENT")
|
||||
{
|
||||
var.m_semantics = "BINORMAL";
|
||||
}
|
||||
|
||||
if (assign < eol
|
||||
&& '=' == *assign
|
||||
&& init < eol)
|
||||
|
|
Loading…
Reference in a new issue