wined3d: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a3fa08de61
commit
dcd3c95dbd
|
@ -3727,7 +3727,7 @@ static struct wined3d_shader_signature_element *shader_find_signature_element(co
|
||||||
for (i = 0; i < s->element_count; ++i)
|
for (i = 0; i < s->element_count; ++i)
|
||||||
{
|
{
|
||||||
if (e[i].stream_idx == stream_idx
|
if (e[i].stream_idx == stream_idx
|
||||||
&& !strcasecmp(e[i].semantic_name, semantic_name)
|
&& !_strnicmp(e[i].semantic_name, semantic_name, -1)
|
||||||
&& e[i].semantic_idx == semantic_idx)
|
&& e[i].semantic_idx == semantic_idx)
|
||||||
return &e[i];
|
return &e[i];
|
||||||
}
|
}
|
||||||
|
|
|
@ -240,17 +240,17 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL)
|
||||||
}
|
}
|
||||||
if (!get_config_key(hkey, appkey, "shader_backend", buffer, size))
|
if (!get_config_key(hkey, appkey, "shader_backend", buffer, size))
|
||||||
{
|
{
|
||||||
if (!strcasecmp(buffer, "glsl"))
|
if (!_strnicmp(buffer, "glsl", -1))
|
||||||
{
|
{
|
||||||
ERR_(winediag)("Using the GLSL shader backend.\n");
|
ERR_(winediag)("Using the GLSL shader backend.\n");
|
||||||
wined3d_settings.shader_backend = WINED3D_SHADER_BACKEND_GLSL;
|
wined3d_settings.shader_backend = WINED3D_SHADER_BACKEND_GLSL;
|
||||||
}
|
}
|
||||||
else if (!strcasecmp(buffer, "arb"))
|
else if (!_strnicmp(buffer, "arb", -1))
|
||||||
{
|
{
|
||||||
ERR_(winediag)("Using the ARB shader backend.\n");
|
ERR_(winediag)("Using the ARB shader backend.\n");
|
||||||
wined3d_settings.shader_backend = WINED3D_SHADER_BACKEND_ARB;
|
wined3d_settings.shader_backend = WINED3D_SHADER_BACKEND_ARB;
|
||||||
}
|
}
|
||||||
else if (!strcasecmp(buffer, "none"))
|
else if (!_strnicmp(buffer, "none", -1))
|
||||||
{
|
{
|
||||||
ERR_(winediag)("Disabling shader backends.\n");
|
ERR_(winediag)("Disabling shader backends.\n");
|
||||||
wined3d_settings.shader_backend = WINED3D_SHADER_BACKEND_NONE;
|
wined3d_settings.shader_backend = WINED3D_SHADER_BACKEND_NONE;
|
||||||
|
|
Loading…
Reference in New Issue