diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-26 09:04:12 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-26 09:04:12 +0100 |
commit | df299d659dbeed3618e8e3bfcf9b835c8f890c31 (patch) | |
tree | 1a32c681e8a2490c58f0f6fb10192cf9ffef7f32 /src | |
parent | f5d154c2d6ca848a526562bd6a678c311ee34e6b (diff) |
Fix 4chan posting reloading captcha on failed captcha
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 3ce881e..a3952e7 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -4234,6 +4234,9 @@ namespace QuickMedia { captcha_solution.clear(); navigation_stage = NavigationStage::POSTING_COMMENT; } else { + captcha_texture.clear(); + captcha_bg_texture.clear(); + bool failed = false; mgl::Image image; if(!image.load_from_memory((const unsigned char*)captcha_challenge.img_data.data(), captcha_challenge.img_data.size()) || !captcha_texture.load_from_image(image)) { |