mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-12 08:57:49 +00:00
gl_texture_cache: Apply sRGB on blits
glBlitFramebuffer keeps in mind GL_FRAMEBUFFER_SRGB's state. Enable this depending on the target surface pixel format.
This commit is contained in:
parent
16a9d0d6e0
commit
f2cf4f8ce7
1 changed files with 1 additions and 0 deletions
|
@ -488,6 +488,7 @@ void TextureCacheOpenGL::ImageBlit(View& src_view, View& dst_view,
|
||||||
OpenGLState state;
|
OpenGLState state;
|
||||||
state.draw.read_framebuffer = src_framebuffer.handle;
|
state.draw.read_framebuffer = src_framebuffer.handle;
|
||||||
state.draw.draw_framebuffer = dst_framebuffer.handle;
|
state.draw.draw_framebuffer = dst_framebuffer.handle;
|
||||||
|
state.framebuffer_srgb.enabled = dst_params.srgb_conversion;
|
||||||
state.AllDirty();
|
state.AllDirty();
|
||||||
state.Apply();
|
state.Apply();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue