Re: [PATCH 2/5] ddraw: Adjust reference counts of created surfaces in ddraw_set_surface_version.
15 Jun
2011
15 Jun
'11
10:49 a.m.
2011/6/14 <rbarkauskas(a)codeweavers.com>:
+ switch(version) + { + case 4: + IDirectDrawSurface4_AddRef(&surface->IDirectDrawSurface4_iface); + break; + case 3: + case 2: + case 1: + IDirectDrawSurface_AddRef(&surface->IDirectDrawSurface_iface); + break; + } + IDirectDrawSurface7_Release(&surface->IDirectDrawSurface7_iface); Why do you need this here instead of in the relevant surface creation functions? (I suppose because of the mipmaps, but I think it may be better to do all this when the surface is created instead of afterwards.)
5299
Age (days ago)
5299
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet