(gfx) Cleanups
This commit is contained in:
parent
310bf3328e
commit
e47b7526bc
|
@ -785,8 +785,9 @@ static void gl2_create_fbo_texture(gl_t *gl,
|
|||
bool fp_fbo = false;
|
||||
bool smooth = false;
|
||||
settings_t *settings = config_get_ptr();
|
||||
GLuint base_filt = settings->bools.video_smooth ? GL_LINEAR : GL_NEAREST;
|
||||
GLuint base_mip_filt = settings->bools.video_smooth ?
|
||||
bool video_smooth = settings->bools.video_smooth;
|
||||
GLuint base_filt = video_smooth ? GL_LINEAR : GL_NEAREST;
|
||||
GLuint base_mip_filt = video_smooth ?
|
||||
GL_LINEAR_MIPMAP_LINEAR : GL_NEAREST_MIPMAP_NEAREST;
|
||||
unsigned mip_level = i + 2;
|
||||
bool mipmapped = gl->shader->mipmap_input(gl->shader_data, mip_level);
|
||||
|
|
|
@ -1160,12 +1160,14 @@ void font_driver_init_osd(
|
|||
enum font_driver_render_api api)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
const char *path_font = settings->paths.path_font;
|
||||
float video_font_size = settings->floats.video_font_size;
|
||||
if (video_font_driver)
|
||||
return;
|
||||
|
||||
video_font_driver = font_driver_init_first(video_data,
|
||||
*settings->paths.path_font ? settings->paths.path_font : NULL,
|
||||
settings->floats.video_font_size, threading_hint, is_threaded, api);
|
||||
*path_font ? path_font : NULL,
|
||||
video_font_size, threading_hint, is_threaded, api);
|
||||
|
||||
if (!video_font_driver)
|
||||
RARCH_ERR("[font]: Failed to initialize OSD font.\n");
|
||||
|
|
Loading…
Reference in New Issue