mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Relax logging level on validateGammaRamp
This commit is contained in:
parent
93240f18b6
commit
90f1857d63
1 changed files with 3 additions and 3 deletions
|
@ -650,17 +650,17 @@ namespace dxvk {
|
|||
|
||||
static bool validateGammaRamp(const WORD (&ramp)[256]) {
|
||||
if (ramp[0] >= ramp[std::size(ramp) - 1]) {
|
||||
Logger::err("validateGammaRamp: ramp inverted or flat");
|
||||
Logger::warn("validateGammaRamp: ramp inverted or flat");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (size_t i = 1; i < std::size(ramp); i++) {
|
||||
if (ramp[i] < ramp[i - 1]) {
|
||||
Logger::err("validateGammaRamp: ramp not monotonically increasing");
|
||||
Logger::warn("validateGammaRamp: ramp not monotonically increasing");
|
||||
return false;
|
||||
}
|
||||
if (ramp[i] - ramp[i - 1] >= UINT16_MAX / 2) {
|
||||
Logger::err("validateGammaRamp: huuuge jump");
|
||||
Logger::warn("validateGammaRamp: huuuge jump");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue