wined3d: Fix sRGB->RGB copy condition.
authorStefan Dösinger <stefan@codeweavers.com>
Mon, 7 Sep 2009 09:37:38 +0000 (11:37 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 23 Sep 2009 11:25:33 +0000 (13:25 +0200)
commit4fe014cb54c88118616cc4ba83da329f3b9a2575
treefec1c8e59cc2b3af04b6373fc0c2b4320fcaf1d1
parent33ca3c02076082131c0b846dd37f5d924f8d9b96
wined3d: Fix sRGB->RGB copy condition.

The old condition happened to work, because SFLAG_INTEXTURE was not
set(we're loading it), and neither was SFLAG_INDRAWABLE(otherwise
INTEXTURE would be set too). If the fbo INDRAWABLE == INTEXTURE is
replaced by INDRAWABLE == INSRGBTEX this doesn't hold true any longer
because SFLAG_INDRAWABLE is set, but not used because the drawable
readback is never used for fbos.
dlls/wined3d/surface.c