VirtualBox

Ignore:
Timestamp:
Oct 6, 2009 6:07:06 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: update to wine 1.1.30

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/query.c

    r19678 r23571  
    6767
    6868    if (ref == 0) {
    69         EnterCriticalSection(&d3d9_cs);
     69        wined3d_mutex_lock();
    7070        IWineD3DQuery_Release(This->wineD3DQuery);
    71         LeaveCriticalSection(&d3d9_cs);
     71        wined3d_mutex_unlock();
     72
    7273        IDirect3DDevice9Ex_Release(This->parentDevice);
    7374        HeapFree(GetProcessHeap(), 0, This);
     
    8485    TRACE("(%p) Relay\n", This);
    8586
    86     EnterCriticalSection(&d3d9_cs);
     87    wined3d_mutex_lock();
    8788    hr = IWineD3DQuery_GetDevice(This->wineD3DQuery, &pDevice);
    8889    if(hr != D3D_OK){
     
    9293        IWineD3DDevice_Release(pDevice);
    9394    }
    94     LeaveCriticalSection(&d3d9_cs);
     95    wined3d_mutex_unlock();
     96
    9597    return hr;
    9698}
     
    101103    TRACE("(%p) Relay\n", This);
    102104
    103     EnterCriticalSection(&d3d9_cs);
     105    wined3d_mutex_lock();
    104106    hr = IWineD3DQuery_GetType(This->wineD3DQuery);
    105     LeaveCriticalSection(&d3d9_cs);
     107    wined3d_mutex_unlock();
     108
    106109    return hr;
    107110}
     
    112115    TRACE("(%p) Relay\n", This);
    113116
    114     EnterCriticalSection(&d3d9_cs);
     117    wined3d_mutex_lock();
    115118    ret = IWineD3DQuery_GetDataSize(This->wineD3DQuery);
    116     LeaveCriticalSection(&d3d9_cs);
     119    wined3d_mutex_unlock();
     120
    117121    return ret;
    118122}
     
    123127    TRACE("(%p) Relay\n", This);
    124128
    125     EnterCriticalSection(&d3d9_cs);
     129    wined3d_mutex_lock();
    126130    hr = IWineD3DQuery_Issue(This->wineD3DQuery, dwIssueFlags);
    127     LeaveCriticalSection(&d3d9_cs);
     131    wined3d_mutex_unlock();
     132
    128133    return hr;
    129134}
     
    134139    TRACE("(%p) Relay\n", This);
    135140
    136     EnterCriticalSection(&d3d9_cs);
     141    wined3d_mutex_lock();
    137142    hr = IWineD3DQuery_GetData(This->wineD3DQuery, pData, dwSize, dwGetDataFlags);
    138     LeaveCriticalSection(&d3d9_cs);
     143    wined3d_mutex_unlock();
     144
    139145    return hr;
    140146}
     
    164170    if (!ppQuery)
    165171    {
    166         EnterCriticalSection(&d3d9_cs);
     172        wined3d_mutex_lock();
    167173        hr = IWineD3DDevice_CreateQuery(This->WineD3DDevice, Type, NULL, NULL);
    168         LeaveCriticalSection(&d3d9_cs);
     174        wined3d_mutex_unlock();
     175
    169176        return hr;
    170177    }
     
    179186    object->lpVtbl = &Direct3DQuery9_Vtbl;
    180187    object->ref = 1;
    181     EnterCriticalSection(&d3d9_cs);
     188
     189    wined3d_mutex_lock();
    182190    hr = IWineD3DDevice_CreateQuery(This->WineD3DDevice, Type, &object->wineD3DQuery, (IUnknown *)object);
    183     LeaveCriticalSection(&d3d9_cs);
     191    wined3d_mutex_unlock();
    184192
    185193    if (FAILED(hr)) {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette