wined3d: Allow using a different internal format for fbos.
commita0127f2e1fe819fbe78cece3636c77cff559dce8
authorStefan Dösinger <stefan@codeweavers.com>
Fri, 23 Nov 2007 13:17:21 +0000 (23 14:17 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 28 Nov 2007 12:40:29 +0000 (28 13:40 +0100)
tree9cab77a3a2f8aedfd94770f35fad23541170ce8e
parent28170c144046d51ee77f1701f8eab36ed89610cd
wined3d: Allow using a different internal format for fbos.

OpenGL drivers do not support some low precision internal formats
like GL_RGB5 for fbo color targets. Direct3D application depend on them,
so provide a fallback format for render targets if the requested format
itself is not supported.
dlls/wined3d/surface.c
dlls/wined3d/utils.c
include/wine/wined3d_gl.h