Open James-master opened 2 years ago
有崩溃堆栈吗?麻烦贴一下崩溃堆栈
java: com.asha.vrlib.objects.MDAbsObject3D.draw(MDAbsObject3D.java:97) com.asha.vrlib.plugins.MDPanoramaPlugin.renderer(MDPanoramaPlugin.java:91) com.asha.vrlib.MD360Renderer.onDrawFrame(MD360Renderer.java:182) android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1581) android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1280)
以上是崩溃的堆栈,具体报错地方是MDAbsObject3D里的这句 GLES20.glDrawElements(GLES20.GL_TRIANGLES, getNumIndices(), GLES20.GL_UNSIGNED_SHORT, getIndicesBuffer());
@James-master Have you resolved this crash?
调用mdVRLibrary.switchProjectionMode()切换如下两种模式相互多次后程序直接崩溃,代码如下: if(isVRMode){ mdVRLibrary.switchProjectionMode(getContext(), MDVRLibrary.PROJECTION_MODE_SPHERE); }else{ mdVRLibrary.switchProjectionMode(getContext(), MDVRLibrary.PROJECTION_MODE_PLANE_FIT); }