Properly size circular buffer
In most cases, it should now use less memory and be faster to construct. In the other cases, blurring used to be incorrect because the buffer was too small.
This commit is contained in:
parent
dc873f4627
commit
0f75e9eea0
1 changed files with 1 additions and 1 deletions
|
@ -1603,7 +1603,7 @@ surface blur_alpha_surface(const surface &surf, int depth)
|
|||
depth = max_blur;
|
||||
}
|
||||
|
||||
boost::circular_buffer<Uint32> queue(max_blur);
|
||||
boost::circular_buffer<Uint32> queue(depth*2+1);
|
||||
|
||||
const Uint32 ff = 0xff;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue