Loading opengl/java/android/opengl/EGL14.java +3 −1 Original line number Diff line number Diff line Loading @@ -248,6 +248,8 @@ public static final int EGL_CORE_NATIVE_ENGINE = 0x305B; } else if (win instanceof SurfaceHolder) { SurfaceHolder holder = (SurfaceHolder)win; sur = holder.getSurface(); } else if (win instanceof Surface) { sur = (Surface) win; } EGLSurface surface; Loading @@ -259,7 +261,7 @@ public static final int EGL_CORE_NATIVE_ENGINE = 0x305B; } else { throw new java.lang.UnsupportedOperationException( "eglCreateWindowSurface() can only be called with an instance of " + "SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " + "Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " + "this will be fixed later."); } Loading Loading
opengl/java/android/opengl/EGL14.java +3 −1 Original line number Diff line number Diff line Loading @@ -248,6 +248,8 @@ public static final int EGL_CORE_NATIVE_ENGINE = 0x305B; } else if (win instanceof SurfaceHolder) { SurfaceHolder holder = (SurfaceHolder)win; sur = holder.getSurface(); } else if (win instanceof Surface) { sur = (Surface) win; } EGLSurface surface; Loading @@ -259,7 +261,7 @@ public static final int EGL_CORE_NATIVE_ENGINE = 0x305B; } else { throw new java.lang.UnsupportedOperationException( "eglCreateWindowSurface() can only be called with an instance of " + "SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " + "Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " + "this will be fixed later."); } Loading