[PATCH 1/5] wined3d: Mark a format as sRGB attachable if the internal format is the same for RGB and sRGB.
Henri Verbeet
hverbeet at codeweavers.com
Tue Oct 25 14:20:25 CDT 2011
---
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);
--
1.7.3.4
More information about the wine-patches
mailing list