Ensure {set,unset}_runtime_shader_preset are always defined

These functions are used elsewhere, so they need to be defined. (Or we
could guard every place they're called instead)
This commit is contained in:
Justin Weiss 2019-09-22 14:39:27 -07:00
parent 5f87fa1aca
commit 621c79dd3c

View File

@ -1332,6 +1332,9 @@ static void retroarch_unset_runtime_shader_preset(void)
{ {
runtime_shader_preset[0] = '\0'; runtime_shader_preset[0] = '\0';
} }
#else
static void retroarch_set_runtime_shader_preset(const char *arg) {}
static void retroarch_unset_runtime_shader_preset(void) {}
#endif #endif
#define MEASURE_FRAME_TIME_SAMPLES_COUNT (2 * 1024) #define MEASURE_FRAME_TIME_SAMPLES_COUNT (2 * 1024)