Project

General

Profile

« Previous | Next » 

Revision 2f1f7570

Added by Leszek Koltunski over 5 years ago

Properly clean up static varaibles in the Effect classes!

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java
67 67
  private static DistortedProgram mProgram1, mProgram2;
68 68
  private static int mIndex1, mIndex2;
69 69

  
70
///////////////////////////////////////////////////////////////////////////////////////////////////
71
// Clean up of static variables on exit.
72
// called by reflection from super class.
73

  
74
  @SuppressWarnings("unused")
75
  static void destroyStatics()
76
    {
77
    mProgram1 = null;
78
    mProgram2 = null;
79

  
80
    mIndex1 = 0;
81
    mIndex2 = 0;
82
    }
83

  
70 84
///////////////////////////////////////////////////////////////////////////////////////////////////
71 85
// This implements the 'Better separable implementation using GPU fixed function sampling' from
72 86
// 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