Revision 2f1f7570
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/effect/PostprocessEffectBlur.java | ||
---|---|---|
66 | 66 |
private static DistortedProgram mProgram1, mProgram2; |
67 | 67 |
private static int mIndex1, mIndex2; |
68 | 68 |
|
69 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
70 |
// Clean up of static variables on exit. |
|
71 |
// called by reflection from super class. |
|
72 |
|
|
73 |
@SuppressWarnings("unused") |
|
74 |
static void destroyStatics() |
|
75 |
{ |
|
76 |
mProgram1 = null; |
|
77 |
mProgram2 = null; |
|
78 |
|
|
79 |
mIndex1 = 0; |
|
80 |
mIndex2 = 0; |
|
81 |
} |
|
82 |
|
|
69 | 83 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
70 | 84 |
// This implements the 'Better separable implementation using GPU fixed function sampling' from |
71 | 85 |
// https://software.intel.com/en-us/blogs/2014/07/15/an-investigation-of-fast-real-time-gpu-based-image-blur-algorithms |
Also available in: Unified diff
Properly clean up static varaibles in the Effect classes!