Revision 9b94626c
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/library/main/Distorted.java | ||
---|---|---|
86 | 86 |
* |
87 | 87 |
* https://community.arm.com/graphics/f/discussions/10285/opengl-es-3-1-on-mali-t880-flashes |
88 | 88 |
*/ |
89 |
public static final int FBO_QUEUE_SIZE = 3;
|
|
89 |
public static final int FBO_QUEUE_SIZE = 4;
|
|
90 | 90 |
|
91 | 91 |
private static boolean mInitialized=false; |
92 | 92 |
|
... | ... | |
142 | 142 |
|
143 | 143 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
144 | 144 |
/** |
145 |
* Call this so that the Library can mark OpenGL objects that would need to be recreated when we |
|
146 |
* get resumed. |
|
145 |
* Call this so that the Library can release the OpenGL related data that needs to be recreated. |
|
147 | 146 |
* Must be called from Activity.onPause(). |
148 | 147 |
*/ |
149 | 148 |
public static void onPause() |
... | ... | |
172 | 171 |
|
173 | 172 |
mInitialized = false; |
174 | 173 |
} |
174 |
|
|
175 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
176 |
/** |
|
177 |
* Return 2 or 3 depending if we have OpenGL Es 2.0 or 3.x context created. |
|
178 |
*/ |
|
179 |
public static int getGlVersion() |
|
180 |
{ |
|
181 |
return GLSL == 300 ? 3:2; |
|
182 |
} |
|
175 | 183 |
} |
Also available in: Unified diff
Port some obvious stuff from OIT branch.