Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If Built in debug mode with msvc, output is pure black. #1

Open
Kiyamou opened this issue Jun 15, 2020 · 1 comment
Open

If Built in debug mode with msvc, output is pure black. #1

Kiyamou opened this issue Jun 15, 2020 · 1 comment

Comments

@Kiyamou
Copy link
Owner

Kiyamou commented Jun 15, 2020

In contrast, build in release mode is normal.

@Kiyamou
Copy link
Owner Author

Kiyamou commented Jun 30, 2020

dst[pos] = (T)m_pucGammaLUT[clamp((int)((src[pos] - m_anAirlight[0]) / transmission + m_anAirlight[0]), 0, peak)];
dst[pos + 1] = (T)m_pucGammaLUT[clamp((int)((src[pos + 1] - m_anAirlight[1]) / transmission + m_anAirlight[1]), 0, peak)];
dst[pos + 2] = (T)m_pucGammaLUT[clamp((int)((src[pos + 2] - m_anAirlight[2]) / transmission + m_anAirlight[2]), 0, peak)];

Maybe it's related with above code. When debug by breakpoint, I get -2147483648, which is the minimum value for signed long type.
In release mode, some code is optimized, but in debug mode this code is stilling running and occurs error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant