remove __debugbreak

This commit is contained in:
2019-01-20 15:28:53 +01:00
parent 2154396c6b
commit 9e76cf3194

View File

@@ -2299,8 +2299,6 @@ void Canvas::draw_objects(std::function<void(const glm::mat4& camera, const glm:
// save image before commit
glm::vec2 box_sz = zw(bounds) - xy(bounds);
bool has_data = box_sz.x > 0 && box_sz.y > 0;
if (box_sz.x > layer.w || box_sz.y > layer.h)
__debugbreak();
if (has_data)
{
action->m_image[i] = std::make_unique<uint8_t[]>(box_sz.x * box_sz.y * 4);