Commit dcd3c95d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wined3d: Don't use strcasecmp.

parent a3fa08de
......@@ -3727,7 +3727,7 @@ static struct wined3d_shader_signature_element *shader_find_signature_element(co
for (i = 0; i < s->element_count; ++i)
{
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)
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 (!strcasecmp(buffer, "glsl"))
if (!_strnicmp(buffer, "glsl", -1))
{
ERR_(winediag)("Using the GLSL shader backend.\n");
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");
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");
wined3d_settings.shader_backend = WINED3D_SHADER_BACKEND_NONE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment