Skip to content

Commit

Permalink
wip 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootingKing-AM committed Dec 11, 2024
1 parent 7215104 commit 2a2ecf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 5 additions & 6 deletions code/mobile/android/PhoneVR/app/src/main/cpp/alvr_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,11 @@ void makeGLContextCurrent() {
CTX.cachedEglConfig = true;
}

if (!eglMakeCurrent(CTX.eglCurrentDisplay,
CTX.eglCurrentDrawSurface,
CTX.eglCurrentReadSurface,
CTX.eglCurrentContext)) {
error("eglMakeCurrent() returned error %s", eglGetErrorString());
}
GL(eglMakeCurrent(CTX.eglCurrentDisplay,
CTX.eglCurrentDrawSurface,
CTX.eglCurrentReadSurface,
CTX.eglCurrentContext));
info("eglMakeCurrent() returned error %s", eglGetErrorString());
}

extern "C" JNIEXPORT void JNICALL Java_viritualisres_phonevr_ALVRActivity_destroyNative(JNIEnv *,
Expand Down
5 changes: 2 additions & 3 deletions code/mobile/android/PhoneVR/app/src/main/cpp/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ const char *eglGetErrorString() {

void makeGLContextCurrent();

#define EGL_MAKE_CURRENT(func) \
func; \
makeGLContextCurrent()
#define EGL_MAKE_CURRENT(func) func;
// makeGLContextCurrent()

#endif // PHONEVR_UTILS_H

0 comments on commit 2a2ecf5

Please sign in to comment.