OPENGL: Allow engines to detect OpenGL info without switching
For now only OpenGL type and shaders support are available
This commit is contained in:
parent
06bc7a25fa
commit
b978cd1caa
7 changed files with 52 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue