mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
glamor_gles2: Use gl_flavor to determine which version of GL.
Signed-off-by: Zhigang Gong <zhigang.gong@gmail.com>
This commit is contained in:
parent
29e358f6b3
commit
36a93f62c7
2 changed files with 44 additions and 10 deletions
|
|
@ -379,6 +379,12 @@ glamor_init(ScreenPtr screen, unsigned int flags)
|
|||
glamor_glyphs_init(screen);
|
||||
glamor_pixmap_init(screen);
|
||||
|
||||
#ifdef GLAMOR_GLES2
|
||||
glamor_priv->gl_flavor = GLAMOR_GL_ES2;
|
||||
#else
|
||||
glamor_priv->gl_flavor = GLAMOR_GL_DESKTOP;
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Reference in a new issue