Skip to content

Commit

Permalink
fix a bug caused by merge, and the glTextureView is supported now!
Browse files Browse the repository at this point in the history
  • Loading branch information
ashqal committed Jul 14, 2016
1 parent 4847d2d commit 573c4df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions vrlib/src/main/java/com/asha/vrlib/MDGLScreenWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public void setRenderer(GLSurfaceView.Renderer renderer) {
@Override
public void init(Context context) {
glTextureView.setEGLContextClientVersion(2);
// not supported
// glTextureView.setPreserveEGLContextOnPause(true);
glTextureView.setPreserveEGLContextOnPause(true);
}

@Override
Expand Down
6 changes: 0 additions & 6 deletions vrlib/src/main/java/com/asha/vrlib/MDVRLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,9 @@ public void onResume(Context context){

public void onPause(Context context){
mInteractiveModeManager.onPause(context);

if (mScreenWrapper != null){
mScreenWrapper.onPause();
}

if (mTexture != null){
mTexture.destroy();
}

}

public void onDestroy(){
Expand Down

0 comments on commit 573c4df

Please sign in to comment.