Silence more warnings
This commit is contained in:
parent
702f1276d6
commit
71dd8f9084
|
@ -914,7 +914,7 @@ static void *gl_glsl_init(void *data, const char *path)
|
||||||
if (*glsl->shader->script_class)
|
if (*glsl->shader->script_class)
|
||||||
info.script_class= glsl->shader->script_class;
|
info.script_class= glsl->shader->script_class;
|
||||||
#endif
|
#endif
|
||||||
info.script_is_file = NULL;
|
info.script_is_file = false;
|
||||||
|
|
||||||
glsl->state_tracker = state_tracker_init(&info);
|
glsl->state_tracker = state_tracker_init(&info);
|
||||||
|
|
||||||
|
|
|
@ -236,11 +236,12 @@ static bool menu_display_d3d_font_init_first(
|
||||||
bool is_threaded)
|
bool is_threaded)
|
||||||
{
|
{
|
||||||
font_data_t **handle = (font_data_t**)font_handle;
|
font_data_t **handle = (font_data_t**)font_handle;
|
||||||
*handle = font_driver_init_first(video_data,
|
if (!(*handle = font_driver_init_first(video_data,
|
||||||
font_path, font_size, true,
|
font_path, font_size, true,
|
||||||
is_threaded,
|
is_threaded,
|
||||||
FONT_DRIVER_RENDER_DIRECT3D_API);
|
FONT_DRIVER_RENDER_DIRECT3D_API)))
|
||||||
return *handle;
|
return false;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_display_ctx_driver_t menu_display_ctx_d3d = {
|
menu_display_ctx_driver_t menu_display_ctx_d3d = {
|
||||||
|
|
|
@ -249,12 +249,12 @@ static bool menu_display_gl_font_init_first(
|
||||||
bool is_threaded)
|
bool is_threaded)
|
||||||
{
|
{
|
||||||
font_data_t **handle = (font_data_t**)font_handle;
|
font_data_t **handle = (font_data_t**)font_handle;
|
||||||
*handle = font_driver_init_first(video_data,
|
if (!(*handle = font_driver_init_first(video_data,
|
||||||
font_path, font_size, true,
|
font_path, font_size, true,
|
||||||
is_threaded,
|
is_threaded,
|
||||||
FONT_DRIVER_RENDER_OPENGL_API);
|
FONT_DRIVER_RENDER_OPENGL_API)))
|
||||||
|
return false;
|
||||||
return *handle;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_display_ctx_driver_t menu_display_ctx_gl = {
|
menu_display_ctx_driver_t menu_display_ctx_gl = {
|
||||||
|
|
Loading…
Reference in New Issue