summaryrefslogtreecommitdiff
path: root/servers/rendering/shader_preprocessor.h
diff options
context:
space:
mode:
authorbitsawer <sawerduster@gmail.com>2023-01-19 22:06:59 +0200
committerbitsawer <sawerduster@gmail.com>2023-01-19 22:06:59 +0200
commit6f57aae0ab6234afe0e6ab5f2566ae706adddc4e (patch)
tree960213396187f20f9eb7cd886aa6d2ad95453e6a /servers/rendering/shader_preprocessor.h
parent88cbd5d42266b57e9ca8a0727640082fb303cef3 (diff)
Fix shader preprocessor memory leak
Diffstat (limited to 'servers/rendering/shader_preprocessor.h')
-rw-r--r--servers/rendering/shader_preprocessor.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/servers/rendering/shader_preprocessor.h b/servers/rendering/shader_preprocessor.h
index f5902c64ca..6e5533c575 100644
--- a/servers/rendering/shader_preprocessor.h
+++ b/servers/rendering/shader_preprocessor.h
@@ -167,7 +167,6 @@ private:
private:
LocalVector<char32_t> output;
State *state = nullptr;
- bool state_owner = false;
private:
static bool is_char_word(char32_t p_char);
@@ -211,7 +210,7 @@ private:
static Define *create_define(const String &p_body);
- void clear();
+ void clear_state();
Error preprocess(State *p_state, const String &p_code, String &r_result);