Henri Verbeet : wined3d: Mark a format as sRGB attachable if the internal format is the same for RGB and sRGB .
Alexandre Julliard
julliard at winehq.org
Wed Oct 26 12:35:46 CDT 2011
Module: wine
Branch: master
Commit: bc3c72f2cc6e71f7f4bcd8fdfc3ea924af3d9a7d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc3c72f2cc6e71f7f4bcd8fdfc3ea924af3d9a7d
Author: Henri Verbeet <hverbeet at 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);
More information about the wine-cvs
mailing list