Revision 2e600ed3
Added by Leszek Koltunski 10 months ago
| src/main/java/org/distorted/library/main/DistortedLibrary.java | ||
|---|---|---|
| 103 | 103 |
* Work around bugs in ARM Mali driver by, instead to a single FBO, rendering to a circular queue |
| 104 | 104 |
* of mFBOQueueSize FBOs. (otherwise we sometimes get a 'full pipeline flush' and the end result |
| 105 | 105 |
* might be missing part of the Objects) |
| 106 |
* |
|
| 106 |
* <p>
|
|
| 107 | 107 |
* This bug only exists on Mali driver r12. (or more precisely it's there in r12 but fixed in r22) |
| 108 |
* |
|
| 109 |
* https://community.arm.com/graphics/f/discussions/10285/opengl-es-3-1-on-mali-t880-flashes
|
|
| 108 |
* <p>
|
|
| 109 |
* <a href="https://community.arm.com/graphics/f/discussions/10285/opengl-es-3-1-on-mali-t880-flashes">...</a>
|
|
| 110 | 110 |
*/ |
| 111 | 111 |
private static int mFBOQueueSize; |
| 112 | 112 |
private static int mGLSL; |
| ... | ... | |
| 214 | 214 |
* compile its OIT problem only on the first attempt to use the OIT |
| 215 | 215 |
* Those will mainly be hardware-related: shaders do not compile on particular hardware, the required |
| 216 | 216 |
* OpenGL ES 3.0 is not supported, etc. |
| 217 |
* |
|
| 217 |
* <p>
|
|
| 218 | 218 |
* Additionally, the User must be able to provide version of the OpenGL supported by the underlying |
| 219 | 219 |
* hardware and InputStreams to given local files. |
| 220 | 220 |
*/ |
| src/main/java/org/distorted/library/main/InternalObject.java | ||
|---|---|---|
| 24 | 24 |
/** |
| 25 | 25 |
* Any Object which gets uploaded to GPU memory and thus needs to be re-created (transparently to |
| 26 | 26 |
* applications!) whenever we lose OpenGL context. |
| 27 |
* |
|
| 27 |
* <p>
|
|
| 28 | 28 |
* Keep all objects created in a static LinkedList. The point: we need to be able to mark |
| 29 | 29 |
* Objects for deletion, and delete all marked Objects later at a convenient time (that's |
| 30 | 30 |
* because we can only delete from a thread that holds the OpenGL context so here we provide a |
Also available in: Unified diff
minor