Skip to content

Commit

Permalink
Update android_main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Sisah2 authored Jun 29, 2024
1 parent 58bfc84 commit a71370e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions buildscripts/patches/openmw/android_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a71370e

Please sign in to comment.