aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-26 09:04:12 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-26 09:04:12 +0100
commitdf299d659dbeed3618e8e3bfcf9b835c8f890c31 (patch)
tree1a32c681e8a2490c58f0f6fb10192cf9ffef7f32
parentf5d154c2d6ca848a526562bd6a678c311ee34e6b (diff)
Fix 4chan posting reloading captcha on failed captcha
m---------depends/mglpp0
-rw-r--r--src/QuickMedia.cpp3
2 files changed, 3 insertions, 0 deletions
diff --git a/depends/mglpp b/depends/mglpp
-Subproject 1d4cc1d1c2c4f6a574775914078c80cf496fc7d
+Subproject aaf0b6edbbda67c2414b4736b82a00e6fe4025f
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)) {