[D3D9Ex] Shader check causes FPS drops
This commit is contained in:
parent
334cc318a4
commit
712f0d9ef4
@ -569,7 +569,9 @@ namespace Components
|
||||
|
||||
HRESULT D3D9Ex::D3D9Device::SetPixelShaderConstantF(UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount)
|
||||
{
|
||||
if (::Utils::Memory::IsBadReadPtr(pConstantData/*, Vector4fCount * 16*/))
|
||||
// Use real bad readptr check here, cause the query takes too long
|
||||
// TODO: Fix the actual error!
|
||||
if (IsBadReadPtr(pConstantData, Vector4fCount * 16))
|
||||
{
|
||||
//Logger::Print("Invalid shader constant array!\n");
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
Loading…
Reference in New Issue
Block a user