summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/fxge/agg/fx_agg_driver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fxge/agg/fx_agg_driver.cpp b/core/fxge/agg/fx_agg_driver.cpp
index 471fc9bb86..128d50c6e6 100644
--- a/core/fxge/agg/fx_agg_driver.cpp
+++ b/core/fxge/agg/fx_agg_driver.cpp
@@ -953,8 +953,10 @@ void CFX_Renderer::render(const Scanline& sl) {
unsigned num_spans = sl.num_spans();
typename Scanline::const_iterator span = sl.begin();
while (1) {
+ if (span->len <= 0)
+ break;
+
int x = span->x;
- ASSERT(span->len > 0);
uint8_t* dest_pos = nullptr;
uint8_t* dest_extra_alpha_pos = nullptr;
uint8_t* ori_pos = nullptr;