mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fixed shaderc arguments.
This commit is contained in:
parent
a51144691b
commit
391ebaefc3
2 changed files with 4 additions and 4 deletions
Binary file not shown.
|
@ -525,7 +525,7 @@ bool compileGLSLShader(bx::CommandLine& _cmdLine, const std::string& _code, bx::
|
|||
|
||||
const char* optimizedShader = glslopt_get_output(shader);
|
||||
|
||||
const char* profile = _cmdLine.findOption('p');
|
||||
const char* profile = _cmdLine.findOption('p', "profile");
|
||||
if (NULL == profile)
|
||||
{
|
||||
writef(_writer, "#ifdef GL_ES\n");
|
||||
|
@ -549,7 +549,7 @@ bool compileGLSLShader(bx::CommandLine& _cmdLine, const std::string& _code, bx::
|
|||
bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, bx::WriterI* _writer)
|
||||
{
|
||||
#if BX_PLATFORM_WINDOWS
|
||||
const char* profile = _cmdLine.findOption('p');
|
||||
const char* profile = _cmdLine.findOption('p', "profile");
|
||||
if (NULL == profile)
|
||||
{
|
||||
fprintf(stderr, "Shader profile must be specified.\n");
|
||||
|
@ -727,7 +727,7 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b
|
|||
bool compileHLSLShaderDx11(bx::CommandLine& _cmdLine, const std::string& _code, bx::WriterI* _writer)
|
||||
{
|
||||
#if BX_PLATFORM_WINDOWS
|
||||
const char* profile = _cmdLine.findOption('p');
|
||||
const char* profile = _cmdLine.findOption('p', "profile");
|
||||
if (NULL == profile)
|
||||
{
|
||||
fprintf(stderr, "Shader profile must be specified.\n");
|
||||
|
@ -1686,7 +1686,7 @@ int main(int _argc, const char* _argv[])
|
|||
|
||||
if (glsl)
|
||||
{
|
||||
const char* profile = cmdLine.findOption('p');
|
||||
const char* profile = cmdLine.findOption('p', "profile");
|
||||
if (NULL == profile)
|
||||
{
|
||||
writef(&writer, "#ifdef GL_ES\n");
|
||||
|
|
Loading…
Reference in a new issue