forked from bartvdbraak/blender
fix for incorrectly checking for break in r47826
This commit is contained in:
parent
29165fc373
commit
3dd02efe2c
@ -74,7 +74,7 @@ void GlareGhostOperation::generateGlare(float *data, MemoryBuffer *inputTile, No
|
|||||||
|
|
||||||
sc = 2.13;
|
sc = 2.13;
|
||||||
isc = -0.97;
|
isc = -0.97;
|
||||||
for (y = 0; y < gbuf->getHeight() & (!breaked); y++) {
|
for (y = 0; y < gbuf->getHeight() && (!breaked); y++) {
|
||||||
v = (float)(y + 0.5f) / (float)gbuf->getHeight();
|
v = (float)(y + 0.5f) / (float)gbuf->getHeight();
|
||||||
for (x = 0; x < gbuf->getWidth(); x++) {
|
for (x = 0; x < gbuf->getWidth(); x++) {
|
||||||
u = (float)(x + 0.5f) / (float)gbuf->getWidth();
|
u = (float)(x + 0.5f) / (float)gbuf->getWidth();
|
||||||
@ -94,8 +94,8 @@ void GlareGhostOperation::generateGlare(float *data, MemoryBuffer *inputTile, No
|
|||||||
}
|
}
|
||||||
|
|
||||||
memset(tbuf1->getBuffer(), 0, tbuf1->getWidth() * tbuf1->getHeight() * COM_NUMBER_OF_CHANNELS * sizeof(float));
|
memset(tbuf1->getBuffer(), 0, tbuf1->getWidth() * tbuf1->getHeight() * COM_NUMBER_OF_CHANNELS * sizeof(float));
|
||||||
for (n = 1; n < settings->iter & (!breaked); n++) {
|
for (n = 1; n < settings->iter && (!breaked); n++) {
|
||||||
for (y = 0; y < gbuf->getHeight() & (!breaked); y++) {
|
for (y = 0; y < gbuf->getHeight() && (!breaked); y++) {
|
||||||
v = (float)(y + 0.5f) / (float)gbuf->getHeight();
|
v = (float)(y + 0.5f) / (float)gbuf->getHeight();
|
||||||
for (x = 0; x < gbuf->getWidth(); x++) {
|
for (x = 0; x < gbuf->getWidth(); x++) {
|
||||||
u = (float)(x + 0.5f) / (float)gbuf->getWidth();
|
u = (float)(x + 0.5f) / (float)gbuf->getWidth();
|
||||||
|
Loading…
Reference in New Issue
Block a user