overlays/gl: minor fixes

- fix ogl color map for overlay resources
- fix label background for save dialog
This commit is contained in:
kd-11 2018-04-10 15:52:21 +03:00 committed by kd-11
parent 6d46ac1ad6
commit bb5622401c
2 changed files with 3 additions and 1 deletions

View file

@ -397,7 +397,7 @@ namespace gl
auto tex = std::make_unique<gl::texture>(GL_TEXTURE_2D, desc->w, desc->h, 1, 1, GL_RGBA8);
tex->copy_from(desc->data, gl::texture::format::rgba, gl::texture::type::uint_8_8_8_8);
GLenum remap[] = { GL_BLUE, GL_GREEN, GL_RED, GL_ALPHA };
GLenum remap[] = { GL_RED, GL_ALPHA, GL_BLUE, GL_GREEN };
auto view = std::make_unique<gl::texture_view>(tex.get(), remap);
auto result = view.get();

View file

@ -291,6 +291,8 @@ namespace rsx
static_cast<label*>(m_time_thingy.get())->auto_resize();
m_dim_background->back_color.a = 0.8f;
m_description->back_color.a = 0.f;
m_time_thingy->back_color.a = 0.f;
return_code = selection_code::canceled;
}