Start using string_is_equal in more places

This commit is contained in:
twinaphex 2016-01-20 04:14:55 +01:00
parent a767031651
commit 64e43a9935
3 changed files with 6 additions and 4 deletions

View File

@ -24,6 +24,7 @@
#include <compat/strl.h>
#include <compat/posix_string.h>
#include <file/file_path.h>
#include <string/stdstring.h>
#include "d3d.h"
#include "../video_common.h"
@ -310,8 +311,7 @@ static bool d3d_init_multipass(d3d_video_t *d3d)
static bool d3d_process_shader(d3d_video_t *d3d)
{
#ifdef HAVE_FBO
if (strcmp(path_get_extension(
d3d->shader_path.c_str()), "cgp") == 0)
if (string_is_equal(path_get_extension(d3d->shader_path.c_str()), "cgp"))
return d3d_init_multipass(d3d);
#endif

View File

@ -160,7 +160,7 @@ static INLINE CGparameter d3d9_cg_find_param_from_semantic(
if (!semantic)
continue;
if (!strcmp(sem, semantic) &&
if (string_is_equal(sem, semantic) &&
validate_param_name(cgGetParameterName(param)))
return param;
}

View File

@ -15,6 +15,8 @@
#include <string.h>
#include <string/stdstring.h>
#include "video_shader_driver.h"
#include "../verbosity.h"
@ -49,7 +51,7 @@ const shader_backend_t *shader_ctx_find_driver(const char *ident)
for (i = 0; shader_ctx_drivers[i]; i++)
{
if (!strcmp(shader_ctx_drivers[i]->ident, ident))
if (string_is_equal(shader_ctx_drivers[i]->ident, ident))
return shader_ctx_drivers[i];
}