Enough JNI/threading hackery to get it to run on Android! Broken readbacks make it crash alot though.

This commit is contained in:
Henrik Rydgård 2018-01-28 17:27:23 +01:00
parent 7abb8702ce
commit bd3a681fd3
5 changed files with 52 additions and 37 deletions

View file

@ -21,5 +21,5 @@ class AndroidGraphicsContext : public GraphicsContext {
public:
// This is different than the base class function since on
// Android (EGL, Vulkan) we do have all this info on the render thread.
virtual bool InitFromRenderThread(ANativeWindow *wnd, int desiredBackbufferSizeX, int desiredBackbufferSizeY, int backbufferFormat, int androidVersion) {}
virtual bool InitFromRenderThread(ANativeWindow *wnd, int desiredBackbufferSizeX, int desiredBackbufferSizeY, int backbufferFormat, int androidVersion) = 0;
};