mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Start using string_is_equal in more places
This commit is contained in:
parent
a767031651
commit
64e43a9935
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user