Revision fd836a41
Added by Leszek Koltunski over 5 years ago
| src/main/java/org/distorted/library/main/DistortedLibrary.java | ||
|---|---|---|
| 678 | 678 |
private static void zeroBuffer() |
| 679 | 679 |
{
|
| 680 | 680 |
ByteBuffer atomicBuf = (ByteBuffer)GLES30.glMapBufferRange( GLES31.GL_ATOMIC_COUNTER_BUFFER, 0, 4, |
| 681 |
GLES30.GL_MAP_WRITE_BIT|GLES30.GL_MAP_INVALIDATE_BUFFER_BIT); |
|
| 681 |
GLES30.GL_MAP_WRITE_BIT|GLES30.GL_MAP_INVALIDATE_BUFFER_BIT);
|
|
| 682 | 682 |
if( atomicBuf!=null ) |
| 683 | 683 |
{
|
| 684 | 684 |
IntBuffer atomicIntBuf = atomicBuf.order(ByteOrder.nativeOrder()).asIntBuffer(); |
| ... | ... | |
| 1036 | 1036 |
Dynamic.onPause(); |
| 1037 | 1037 |
mLinkedListSSBO[0]= -1; |
| 1038 | 1038 |
mAtomicCounter = null; |
| 1039 |
|
|
| 1040 |
mFullProgram = null; |
|
| 1041 |
mNormalProgram = null; |
|
| 1042 |
mOITRenderProgram = null; |
|
| 1043 |
mOITCollapseProgram = null; |
|
| 1044 |
mOITBuildProgram = null; |
|
| 1045 |
mOITClearProgram = null; |
|
| 1039 | 1046 |
} |
| 1040 | 1047 |
|
| 1041 | 1048 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Fix the fact that the Normal and OIT programs would not work after a period of being paused.