mirror of
https://github.com/libretro/RetroArch
synced 2025-02-13 21:40:27 +00:00
Set alpha default more explicitly.
This commit is contained in:
parent
eb979732b4
commit
f74467c81b
4
gfx/gl.c
4
gfx/gl.c
@ -1996,10 +1996,6 @@ static bool gl_overlay_load(void *data, const uint32_t *image, unsigned width, u
|
||||
gl_overlay_tex_geom(gl, 0, 0, 1, 1); // Default. Stretch to whole screen.
|
||||
gl_overlay_vertex_geom(gl, 0, 0, 1, 1);
|
||||
|
||||
// Only override this value when we need to.
|
||||
if (gl->overlay_alpha_mod <= 0.0f)
|
||||
gl->overlay_alpha_mod = 1.0f;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -285,6 +285,8 @@ input_overlay_t *input_overlay_new(const char *overlay)
|
||||
ol->iface->enable(ol->iface_data, true);
|
||||
ol->enable = true;
|
||||
|
||||
input_overlay_set_alpha_mod(ol, 1.0f);
|
||||
|
||||
return ol;
|
||||
|
||||
error:
|
||||
|
Loading…
x
Reference in New Issue
Block a user