Ignore:
Timestamp:
Feb 26, 2013, 2:43:45 PM (7 years ago)
Author:
sam
Message:

base: start removing occurrences of NULL on our long journey to nullptr.

File:
1 edited

Legend:

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

    r2315 r2506  
    116116    g_d3ddevice->CreateTexture(m_data->m_size.x, m_data->m_size.y, 1,
    117117                               d3d_usage, d3d_format,
    118                                D3DPOOL_DEFAULT, &m_data->m_texture, NULL);
     118                               D3DPOOL_DEFAULT, &m_data->m_texture, nullptr);
    119119    m_data->m_bytes_per_elem = GET_CLAMPED(d3d_formats, format).bytes;
    120120#else
     
    197197    D3DLOCKED_RECT rect;
    198198#   if defined USE_D3D9
    199     m_data->m_texture->LockRect(0, &rect, NULL, D3DLOCK_DISCARD);
    200 #   else
    201     m_data->m_texture->LockRect(0, &rect, NULL, 0);
     199    m_data->m_texture->LockRect(0, &rect, nullptr, D3DLOCK_DISCARD);
     200#   else
     201    m_data->m_texture->LockRect(0, &rect, nullptr, 0);
    202202#   endif
    203203
     
    217217#if defined _XBOX || defined USE_D3D9
    218218    D3DLOCKED_RECT rect;
    219     m_data->m_texture->LockRect(0, &rect, NULL, 0);
     219    m_data->m_texture->LockRect(0, &rect, nullptr, 0);
    220220
    221221    int stride = size.x * m_data->m_bytes_per_elem;
Note: See TracChangeset for help on using the changeset viewer.