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
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue