[PATCH v4] win32u: Cache GL driver functions in DC.

Jacek Caban jacek at codeweavers.com
Sun Feb 20 07:54:13 CST 2022


On 2/20/22 14:48, Jacek Caban wrote:
> On 2/18/22 16:52, Paul Gofman wrote:
>> @@ -816,6 +834,8 @@ HDC WINAPI NtGdiCreateCompatibleDC( HDC hdc )
>>           free_dc_ptr( dc );
>>           return 0;
>>       }
>> +    dc->dibdrv = TRUE;
>> +
>>       physDev = GET_DC_PHYSDEV( dc, pSelectBitmap );
>>       physDev->funcs->pSelectBitmap( physDev, dc->hBitmap );
>
>
> That's not pretty, you could use something like 
> get_gdi_object_type(...) == NTGDI_OBJ_METADC instead. 


I meant NTGDI_OBJ_MEMDC.


Jacek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20220220/49de26e0/attachment.htm>


More information about the wine-devel mailing list