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

@ -509,6 +509,8 @@ bool OSystem_Android::hasFeature(Feature f) {
/* Even if we are using the 2D graphics manager,
* we are at one initGraphics3d call of supporting GLES2 */
if (f == kFeatureOpenGLForGame) return true;
/* GLES2 always supports shaders */
if (f == kFeatureShadersForGame) return true;
return ModularGraphicsBackend::hasFeature(f);
}