Changeset 41109 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/device.c
- Timestamp:
- May 2, 2012 8:37:46 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/device.c
r41028 r41109 6279 6279 if (surface->texture_name) 6280 6280 { 6281 #ifdef VBOX_WITH_WDDM 6282 # ifdef DEBUG_misha 6283 /* shared case needs testing! */ 6284 Assert(!VBOXSHRC_IS_SHARED(surface)); 6285 # endif 6286 if (VBOXSHRC_CAN_DELETE(device, surface)) 6287 #endif 6288 { 6289 struct wined3d_context *context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD); 6290 ENTER_GL(); 6291 glDeleteTextures(1, &surface->texture_name); 6292 LEAVE_GL(); 6293 context_release(context); 6294 } 6281 IWineD3DDeviceImpl *This = device; /* <- to make the below texture_gl_delete macro work and avoid other modifications */ 6282 struct wined3d_context *context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD); 6283 ENTER_GL(); 6284 texture_gl_delete(surface, surface->texture_name); 6285 LEAVE_GL(); 6286 context_release(context); 6295 6287 surface->texture_name = 0; 6296 6288 surface->Flags &= ~SFLAG_CLIENT;
Note:
See TracChangeset
for help on using the changeset viewer.