OPENGL: Allow engines to detect OpenGL info without switching

For now only OpenGL type and shaders support are available
This commit is contained in:
Le Philousophe 2022-04-02 18:10:06 +02:00
parent 06bc7a25fa
commit b978cd1caa
7 changed files with 52 additions and 9 deletions

View file

@ -192,6 +192,8 @@ public:
bool setGraphicsMode(int mode, uint flags) override;
int getGraphicsMode() const override;
OpenGL::ContextOGLType getOpenGLType() const override { return OpenGL::kOGLContextGLES2; }
#ifdef ANDROID_DEBUG_GL_CALLS
bool isRunningInMainThread() { return pthread_self() == _main_thread; }
#endif