mayingzhen / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Crash when attempting to use Surface::toNormalMap(...) #206

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Plainly calling Surface::toNormalMap will cause a crash.

What is the expected output? What do you see instead?
A normal map is expected, but the spanish access violation inquisition appeared 
instead.

What version of the product are you using? On what operating system?
SVN revision 1380

Please provide any additional information below.

Someone forgot to adjust the arguments used to call FloatImage::pixel(c, x, y, 
z) in nvimage/NormalMap.cpp. The callers use x, y, z, c instead and cause a 
crash or assertion fail because of bogus input.
A patch is supplied to fix the problem.

Original issue reported on code.google.com by hawk2haw...@googlemail.com on 1 Apr 2014 at 10:51

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for catching this!

Original comment by cast...@gmail.com on 3 Apr 2014 at 10:07

GoogleCodeExporter commented 8 years ago
This should now be fixed in r1381.

Original comment by cast...@gmail.com on 3 Apr 2014 at 10:11