mirror of https://github.com/bkaradzic/bgfx
Cleanup.
This commit is contained in:
parent
3ca4d7feb3
commit
407c37e8d3
|
@ -5090,7 +5090,7 @@ namespace bgfx { namespace gl
|
|||
uint32_t version =
|
||||
usesIUsamplers || usesTexelFetch ? 130
|
||||
: usesTextureLod ? 120
|
||||
: 0
|
||||
: 120
|
||||
;
|
||||
|
||||
if (0 != version)
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace bgfx
|
|||
{
|
||||
bool compileGLSLShader(bx::CommandLine& _cmdLine, uint32_t _gles, const std::string& _code, bx::WriterI* _writer)
|
||||
{
|
||||
char ch = tolower(_cmdLine.findOption('\0', "type")[0]);
|
||||
char ch = char(tolower(_cmdLine.findOption('\0', "type")[0]) );
|
||||
const glslopt_shader_type type = ch == 'f'
|
||||
? kGlslOptShaderFragment
|
||||
: (ch == 'c' ? kGlslOptShaderCompute : kGlslOptShaderVertex);
|
||||
|
@ -152,7 +152,7 @@ namespace bgfx
|
|||
char arraySize[32];
|
||||
const char* end = bx::strnstr(array, "]", eol-array);
|
||||
bx::strlcpy(arraySize, array+1, end-array);
|
||||
num = atoi(arraySize);
|
||||
num = uint8_t(atoi(arraySize) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue