mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
togl/togles: use PBO for DYNAMIC textures
This commit is contained in:
@@ -404,7 +404,7 @@ HRESULT IDirect3DDevice9::CreateTexture(UINT Width,UINT Height,UINT Levels,DWORD
|
||||
|
||||
if (Usage & D3DUSAGE_DYNAMIC)
|
||||
{
|
||||
// GLMPRINTF(("-X- DYNAMIC tex usage ignored..")); //FIXME
|
||||
key.m_texFlags |= kGLMTexDynamic;
|
||||
}
|
||||
|
||||
if (Usage & D3DUSAGE_TEXTURE_SRGB)
|
||||
@@ -617,7 +617,7 @@ HRESULT IDirect3DDevice9::CreateCubeTexture(UINT EdgeLength,UINT Levels,DWORD Us
|
||||
|
||||
if (Usage & D3DUSAGE_DYNAMIC)
|
||||
{
|
||||
//GLMPRINTF(("-X- DYNAMIC tex usage ignored..")); //FIXME
|
||||
key.m_texFlags |= kGLMTexDynamic;
|
||||
}
|
||||
|
||||
if (Usage & D3DUSAGE_TEXTURE_SRGB)
|
||||
@@ -823,7 +823,7 @@ HRESULT IDirect3DDevice9::CreateVolumeTexture(UINT Width,UINT Height,UINT Depth,
|
||||
|
||||
if (Usage & D3DUSAGE_DYNAMIC)
|
||||
{
|
||||
GLMPRINTF(("-X- DYNAMIC tex usage ignored..")); //FIXME
|
||||
key.m_texFlags |= kGLMTexDynamic;
|
||||
}
|
||||
|
||||
if (Usage & D3DUSAGE_TEXTURE_SRGB)
|
||||
@@ -1040,7 +1040,9 @@ HRESULT IDirect3DSurface9::LockRect(D3DLOCKED_RECT* pLockedRect,CONST RECT* pRec
|
||||
// smells like readback, force texel readout
|
||||
lockreq.m_readback = true;
|
||||
}
|
||||
|
||||
|
||||
lockreq.m_readonly = Flags & D3DLOCK_READONLY;
|
||||
|
||||
char *lockAddress;
|
||||
int yStride;
|
||||
int zStride;
|
||||
|
||||
Reference in New Issue
Block a user