Changeset 1991


Ignore:
Timestamp:
Oct 8, 2012, 5:54:26 PM (5 years ago)
Author:
sam
Message:

gpu: don't use D3DLOCK_DISCARD on the X360, it's not there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gpu/texture.cpp

    r1989 r1991  
    119119#if defined _XBOX || defined USE_D3D9
    120120    D3DLOCKED_RECT rect;
     121#   if defined USE_D3D9
    121122    m_data->m_tex->LockRect(0, &rect, NULL, D3DLOCK_DISCARD);
     123#   else
     124    m_data->m_tex->LockRect(0, &rect, NULL, 0);
     125#   endif
    122126
    123127    memcpy(rect.pBits, data, rect.Pitch * m_data->m_size.y);
Note: See TracChangeset for help on using the changeset viewer.