mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Define android windowing data so it will at least compile
This commit is contained in:
@@ -47,7 +47,7 @@ struct GLWindowingData
|
||||
HWND wnd;
|
||||
};
|
||||
|
||||
#elif defined(RENDERDOC_PLATFORM_POSIX)
|
||||
#elif defined(RENDERDOC_PLATFORM_LINUX)
|
||||
// cheeky way to prevent GL/gl.h from being included, as we want to use
|
||||
// glcorearb.h from above
|
||||
#define __gl_h_
|
||||
@@ -65,6 +65,20 @@ struct GLWindowingData
|
||||
GLXDrawable wnd;
|
||||
};
|
||||
|
||||
#elif defined(RENDERDOC_PLATFORM_ANDROID)
|
||||
|
||||
#include "EGL/egl.h"
|
||||
#include "EGL/eglext.h"
|
||||
|
||||
struct GLWindowingData
|
||||
{
|
||||
GLWindowingData() { ctx = NULL; wnd = 0; }
|
||||
|
||||
void SetCtx(void *c) { ctx = (void*)c; }
|
||||
EGLContext ctx;
|
||||
ANativeWindow *wnd;
|
||||
};
|
||||
|
||||
#else
|
||||
#error "Unknown platform"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user