Revision c43abe6c
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/library/main/Distorted.java | ||
---|---|---|
26 | 26 |
import android.opengl.GLES31; |
27 | 27 |
|
28 | 28 |
import org.distorted.library.effect.Effect; |
29 |
import org.distorted.library.effect.FragmentEffect; |
|
30 | 29 |
import org.distorted.library.effect.PostprocessEffect; |
31 |
import org.distorted.library.effect.VertexEffect; |
|
32 | 30 |
import org.distorted.library.message.EffectMessageSender; |
33 | 31 |
|
34 | 32 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
108 | 106 |
// ARM Mali driver r12 has problems when we keep swapping many FBOs (fixed in r22) |
109 | 107 |
// PowerVR GE8100 compiler fails to compile OIT programs. |
110 | 108 |
|
111 |
static void detectBuggyDrivers() |
|
109 |
private static void detectBuggyDrivers()
|
|
112 | 110 |
{ |
113 | 111 |
String vendor = GLES31.glGetString(GLES31.GL_VENDOR); |
114 | 112 |
String version = GLES31.glGetString(GLES31.GL_VERSION); |
... | ... | |
149 | 147 |
|
150 | 148 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
151 | 149 |
/** |
152 |
* When OpenGL context gets created, you need to call this method so that the library can initialise its internal data structures.
|
|
150 |
* When OpenGL context gets created, call this method so that the library can initialise its internal data structures. |
|
153 | 151 |
* I.e. best called from GLSurfaceView.onCreate(). |
154 | 152 |
* <p> |
155 | 153 |
* Needs to be called from a thread holding the OpenGL context. |
Also available in: Unified diff
Fixes for memory leak problems uncovered by the 'Rubik' app. (mainly: new method DistortedNode.markForDeletion)