[PATCH 03/10] d3d9: move GetDC check to actual d3d9_surface_GetDC call

Henri Verbeet hverbeet at gmail.com
Tue Oct 20 10:36:07 CDT 2015


On 20 October 2015 at 16:39, Riccardo Bortolato <rikyz619 at gmail.com> wrote:
> Yes, but since the only usage of getdc_supported is really in that
> function, it feels pointless to store it anyway.
>
IIRC the original reason for storing the result in a flag was to avoid
recalculating it every time GetDC() is called. GetDC() is perhaps not
extremely performance critical, but it will still be called a fair
amount by applications that use it. It's possible to move it, but
without a clear need that would need some performance data to back it
up.



More information about the wine-devel mailing list