diff --git a/pano360demo/release/pano360demo-release.apk b/pano360demo/release/pano360demo-release.apk index 8383863..fe892c7 100644 Binary files a/pano360demo/release/pano360demo-release.apk and b/pano360demo/release/pano360demo-release.apk differ diff --git a/pano360demo/src/main/java/com/martin/ads/pano360demo/HomeActivity.java b/pano360demo/src/main/java/com/martin/ads/pano360demo/HomeActivity.java index 9aabbec..f2a42f1 100644 --- a/pano360demo/src/main/java/com/martin/ads/pano360demo/HomeActivity.java +++ b/pano360demo/src/main/java/com/martin/ads/pano360demo/HomeActivity.java @@ -130,7 +130,8 @@ private void start(){ .setFilePath(filePath) .setMimeType(mimeType) .setPlaneModeEnabled(planeModeEnabled) - .setRemoveHotspot(false) + //set it false to see default hotspot + .setRemoveHotspot(true) .setVideoHotspotPath(videoHotspotPath); if((mimeType & MimeType.BITMAP)!=0){ diff --git a/vrlib/src/main/java/com/martin/ads/vrlib/PanoRender.java b/vrlib/src/main/java/com/martin/ads/vrlib/PanoRender.java index 8f963df..62242f6 100644 --- a/vrlib/src/main/java/com/martin/ads/vrlib/PanoRender.java +++ b/vrlib/src/main/java/com/martin/ads/vrlib/PanoRender.java @@ -123,8 +123,8 @@ public void onDrawFrame(GL10 glUnused) { panoMediaPlayerWrapper.doTextureUpdate(((OESFilter)firstPassFilter).getSTMatrix()); } filterGroup.drawToFBO(0,fbo); - fbo.unbind(); - screenDrawer.onDrawFrame(fbo.getFrameBufferTextureId()); + if(fbo!=null) + screenDrawer.onDrawFrame(fbo.getFrameBufferTextureId()); if (saveImg){ BitmapUtils.sendImage(surfaceWidth, surfaceHeight,statusHelper.getContext()); diff --git a/vrlib/src/main/java/com/martin/ads/vrlib/filters/base/FilterGroup.java b/vrlib/src/main/java/com/martin/ads/vrlib/filters/base/FilterGroup.java index 4ff83e1..5cedee1 100644 --- a/vrlib/src/main/java/com/martin/ads/vrlib/filters/base/FilterGroup.java +++ b/vrlib/src/main/java/com/martin/ads/vrlib/filters/base/FilterGroup.java @@ -76,6 +76,7 @@ public void drawToFBO(int textureId,FBO fbo) { }else{ filter.onDrawFrame(previousTexture); } + fbo.unbind(); } } }