wined3d: Mark a format as sRGB attachable if the internal format is the same for RGB and sRGB.

This commit is contained in:
Henri Verbeet 2011-10-25 21:20:25 +02:00 committed by Alexandre Julliard
parent 7fbb16d4ba
commit bc3c72f2cc

View File

@ -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);