Module: wine Branch: master Commit: bc3c72f2cc6e71f7f4bcd8fdfc3ea924af3d9a7d URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc3c72f2cc6e71f7f4bcd8fdfc...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Oct 25 21:20:25 2011 +0200
wined3d: Mark a format as sRGB attachable if the internal format is the same for RGB and sRGB.
---
dlls/wined3d/utils.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index 9661eb4..f374967 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -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);