wined3d: Update the blit ortho on size changes.
commit74c5684f903cdf84607bb67bf8c739bffc8df5d0
authorStefan Dösinger <stefan@codeweavers.com>
Mon, 16 Jun 2008 23:41:49 +0000 (17 01:41 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 2 Jul 2008 10:24:35 +0000 (2 12:24 +0200)
treef4804cc1ac33a5b38aa2df8485fa8258082c20d5
parentc4eae160d7f8207803c4e6f5d3ea787e791dc95a
wined3d: Update the blit ortho on size changes.

SetupForBlit sets up the GL viewport and projection matrix for
screen-cordinate access to the framebuffer. These settings were not
updated if the other gl states were already set up for blitting. Guild
Wars reads back an offscreen rendered texture from the framebuffer,
which currently sets up CTXUSAGE_BLIT, then changes the render target,
and draws to the texture, which has to be reloaded from system memory
before it can be rendered to(since GW loaded some data into it). If the
two render targets had different size this failed.
dlls/wined3d/context.c
dlls/wined3d/wined3d_private.h