Fixed a compiler warning

This commit is contained in:
PatrickvL 2017-01-23 11:02:53 +01:00
parent eafc090139
commit d12b782e02
1 changed files with 2 additions and 2 deletions

View File

@ -356,8 +356,8 @@ VOID WINAPI XTL::EmuXGSetTextureHeader
// EmuIDirect3DDevice8_Register do the rest? Trial and error.
X_D3DTexture* pTempTexture = NULL;
DWORD l2w = (DWORD) log( (float)Width ) / log(2.0f);
DWORD l2h = (DWORD) log( (float)Height ) / log(2.0f);
DWORD l2w; _BitScanReverse(&l2w, Width); // Untested (no test-case known)
DWORD l2h; _BitScanReverse(&l2h, Height); // Note : _BitScanReverse is a MSVC intrinsic. For GCC use __builtin_clz
/*if( Data != 0 )
CxbxKrnlCleanup( "Data != 0 (XGSetTextureHeader)" );