[D3D9Ex] Shader check causes FPS drops

This commit is contained in:
momo5502 2017-02-22 19:03:37 +01:00
parent 334cc318a4
commit 712f0d9ef4

View File

@ -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;