From 3dd02efe2c1ae76c9d69f10352585dfdaf40afc8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 13 Jun 2012 14:01:28 +0000 Subject: [PATCH] fix for incorrectly checking for break in r47826 --- .../compositor/operations/COM_GlareGhostOperation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/compositor/operations/COM_GlareGhostOperation.cpp b/source/blender/compositor/operations/COM_GlareGhostOperation.cpp index defbd76fa51..d3ecee2a508 100644 --- a/source/blender/compositor/operations/COM_GlareGhostOperation.cpp +++ b/source/blender/compositor/operations/COM_GlareGhostOperation.cpp @@ -74,7 +74,7 @@ void GlareGhostOperation::generateGlare(float *data, MemoryBuffer *inputTile, No sc = 2.13; 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(); for (x = 0; x < gbuf->getWidth(); x++) { 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)); - for (n = 1; n < settings->iter & (!breaked); n++) { - for (y = 0; y < gbuf->getHeight() & (!breaked); y++) { + for (n = 1; n < settings->iter && (!breaked); n++) { + for (y = 0; y < gbuf->getHeight() && (!breaked); y++) { v = (float)(y + 0.5f) / (float)gbuf->getHeight(); for (x = 0; x < gbuf->getWidth(); x++) { u = (float)(x + 0.5f) / (float)gbuf->getWidth();