Project

General

Profile

« Previous | Next » 

Revision ce3787c7

Added by Leszek Koltunski almost 8 years ago

Icon & metadata

View differences:

src/main/java/org/distorted/examples/plainmonalisa/EglCore.java
47 47
   * <p>
48 48
   * Equivalent to EglCore(null, 0).
49 49
   */
50
  public EglCore() {
51
        this(null, 0);
50
  public EglCore()
51
    {
52
    this(null, 0);
52 53
    }
53 54

  
54 55
///////////////////////////////////////////////////////////////////////////////////////////////////
......
191 192
    {
192 193
    if (mEGLDisplay != EGL14.EGL_NO_DISPLAY)
193 194
      {
194
      // Android is unusual in that it uses a reference-counted EGLDisplay.  So for
195
      // every eglInitialize() we need an eglTerminate().
196 195
      EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);
197 196
      EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
198 197
      EGL14.eglReleaseThread();

Also available in: Unified diff