Procházet zdrojové kódy

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

legacy
Sam Hocevar sam před 13 roky
rodič
revize
f626d36b47
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. +4
    -0
      src/gpu/texture.cpp

+ 4
- 0
src/gpu/texture.cpp Zobrazit soubor

@@ -118,7 +118,11 @@ void Texture::SetData(void *data)
{
#if defined _XBOX || defined USE_D3D9
D3DLOCKED_RECT rect;
# if defined USE_D3D9
m_data->m_tex->LockRect(0, &rect, NULL, D3DLOCK_DISCARD);
# else
m_data->m_tex->LockRect(0, &rect, NULL, 0);
# endif

memcpy(rect.pBits, data, rect.Pitch * m_data->m_size.y);



Načítá se…
Zrušit
Uložit