We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4f55c6 + 3fb9451 commit 342297cCopy full SHA for 342297c
1 file changed
library/src/main/java/jp/co/cyberagent/android/gpuimage/filter/GPUImageFilter.java
@@ -135,8 +135,10 @@ protected void onDrawArraysPre() {
135
}
136
137
protected void runPendingOnDrawTasks() {
138
- while (!runOnDraw.isEmpty()) {
139
- runOnDraw.removeFirst().run();
+ synchronized (runOnDraw) {
+ while (!runOnDraw.isEmpty()) {
140
+ runOnDraw.removeFirst().run();
141
+ }
142
143
144
0 commit comments