Changeset 42255 in vbox
- Timestamp:
- Jul 20, 2012 11:57:44 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/texture.c
r41109 r42255 690 690 if (VBOXSHRC_IS_SHARED(texture)) 691 691 { 692 struct wined3d_context * context; 692 693 Assert(shared_handle); 693 694 for (i = 0; i < texture->baseTexture.levels; ++i) … … 723 724 #endif 724 725 725 if (!VBOXSHRC_IS_SHARED(texture)) 726 { 727 struct wined3d_context * context; 728 729 Assert(!device->isInDraw); 730 731 /* flush to ensure the texture is allocated/referenced before it is used/released by another 732 * process opening/creating it */ 733 context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD); 734 if (context->valid) 735 { 736 wglFlush(); 737 } 738 else 739 { 740 ERR("invalid context!"); 741 } 742 context_release(context); 743 } 726 Assert(!device->isInDraw); 727 728 /* flush to ensure the texture is allocated/referenced before it is used/released by another 729 * process opening/creating it */ 730 context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD); 731 if (context->valid) 732 { 733 wglFlush(); 734 } 735 else 736 { 737 ERR("invalid context!"); 738 } 739 context_release(context); 744 740 } 745 741 else
Note:
See TracChangeset
for help on using the changeset viewer.