Make this code more robust
This commit is contained in:
parent
5a4bb34cf8
commit
c6ead6e973
|
@ -858,7 +858,7 @@ static bool dynamic_verify_hw_context(enum retro_hw_context_type type,
|
|||
switch (type)
|
||||
{
|
||||
case RETRO_HW_CONTEXT_VULKAN:
|
||||
if (string_is_not_equal_fast(video_ident, "vulkan", 6))
|
||||
if (!string_is_equal(video_ident, "vulkan"))
|
||||
return false;
|
||||
break;
|
||||
case RETRO_HW_CONTEXT_OPENGLES2:
|
||||
|
@ -866,7 +866,7 @@ static bool dynamic_verify_hw_context(enum retro_hw_context_type type,
|
|||
case RETRO_HW_CONTEXT_OPENGLES_VERSION:
|
||||
case RETRO_HW_CONTEXT_OPENGL:
|
||||
case RETRO_HW_CONTEXT_OPENGL_CORE:
|
||||
if (string_is_not_equal_fast(video_ident, "gl", 2))
|
||||
if (!string_is_equal(video_ident, "gl"))
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue