mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-20 10:10:32 +01:00
glesv2: Fix regression in gles version detection
Revert the _cairo_gl_get_flavor() portion of the change from commit
eb523200. This caused GLES to be enabled only if the hardware reported
version 2 exactly; if the hardware supported version 2 and 3 then no ES
support would be enabled.
This commit is contained in:
parent
c29db4f0de
commit
1af18610ba
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ _cairo_gl_get_flavor (void)
|
|||
|
||||
if (version == NULL)
|
||||
flavor = CAIRO_GL_FLAVOR_NONE;
|
||||
else if (strstr (version, "OpenGL ES 2") != NULL)
|
||||
else if (strstr (version, "OpenGL ES") != NULL)
|
||||
flavor = CAIRO_GL_FLAVOR_ES2;
|
||||
else
|
||||
flavor = CAIRO_GL_FLAVOR_DESKTOP;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue