ands / seamoptimizer

A C/C++ single-file library that minimizes the hard transition errors of disjoint edges in lightmaps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bounds check

guycalledfrank opened this issue · comments

commented

Just testing the library :)
Found it crashing with Y coordinate being 1024 for a 1024 map (shouldn't be > 1023). Maybe my fault, but also maybe there needs to be something like min(ax+1, w-1) and so on here:
https://github.com/ands/seamoptimizer/blob/master/seamoptimizer.h#L484

commented

Yeah, the border conditions need some clean up... :)