Set alpha default more explicitly.

This commit is contained in:
Themaister 2013-01-29 21:53:03 +01:00
parent eb979732b4
commit f74467c81b
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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: