From a71370ef6a2ca6dd5857a8b2f1f0c5024ca53bee Mon Sep 17 00:00:00 2001 From: Sisah2 <64099446+Sisah2@users.noreply.github.com> Date: Sat, 29 Jun 2024 07:54:40 +0200 Subject: [PATCH] Update android_main.cpp --- buildscripts/patches/openmw/android_main.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/buildscripts/patches/openmw/android_main.cpp b/buildscripts/patches/openmw/android_main.cpp index 84a5210a..8623fe8b 100644 --- a/buildscripts/patches/openmw/android_main.cpp +++ b/buildscripts/patches/openmw/android_main.cpp @@ -64,20 +64,12 @@ extern "C" int Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cl return 0; } -static osg::GraphicsContext *ctx; - class CtxReleaseOperation : public osg::Operation { public: - virtual void operator () (osg::Object* caller) { - ctx->releaseContext(); - } }; class CtxAcquireOperation : public osg::Operation { public: - virtual void operator () (osg::Object* caller) { - ctx->makeCurrent(); - } }; extern "C" void Java_org_libsdl_app_SDLActivity_omwSurfaceDestroyed(JNIEnv *env, jclass cls, jobject obj) {