Browse Source

LibGfx: Remove unnecessary assertion in Painter::draw_pixel()

Andreas Kling 4 years ago
parent
commit
acb87cd164
1 changed files with 0 additions and 1 deletions
  1. 0 1
      Libraries/LibGfx/Painter.cpp

+ 0 - 1
Libraries/LibGfx/Painter.cpp

@@ -1157,7 +1157,6 @@ ALWAYS_INLINE void Painter::fill_scanline_with_draw_op(int y, int x, int width,
 
 void Painter::draw_pixel(const IntPoint& position, Color color, int thickness)
 {
-    ASSERT(draw_op() == DrawOp::Copy);
     if (thickness == 1)
         return set_pixel_with_draw_op(m_target->scanline(position.y())[position.x()], color);
     IntRect rect { position.translated(-(thickness / 2), -(thickness / 2)), { thickness, thickness } };