Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Division by zero in QuickCompressDXT.cpp, line 452 #208

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments
Open

Division by zero in QuickCompressDXT.cpp, line 452 #208

GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments
Assignees
Labels

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.Compress an image such that in optimizeAlpha8(..) the terms beta2_sum and 
alphabeta_sum are both zero
2. Then the computation of factor = 1.0f / (...) causes division by zero
3.

What is the expected output? What do you see instead?
The factor term should never be INF, it causes some problems with MSVC 2013

What version of the product are you using? On what operating system?
Latest from SVN.  OS is Win7 64-bit.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 28 Apr 2014 at 7:03

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

No branches or pull requests

2 participants