mirror of
https://github.com/reactos/wine.git
synced 2025-02-19 20:31:35 +00:00
wined3d: Mark a format as sRGB attachable if the internal format is the same for RGB and sRGB.
This commit is contained in:
parent
7fbb16d4ba
commit
bc3c72f2cc
@ -1105,6 +1105,8 @@ static void check_fbo_compat(const struct wined3d_gl_info *gl_info, struct wined
|
||||
WARN("Format %s's sRGB format is not FBO attachable.\n", debug_d3dformat(format->id));
|
||||
}
|
||||
}
|
||||
else if (status == GL_FRAMEBUFFER_COMPLETE)
|
||||
format->flags |= WINED3DFMT_FLAG_FBO_ATTACHABLE_SRGB;
|
||||
|
||||
glDeleteTextures(1, &tex);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user