mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
[cogl] Allow Cogl to create NPOT textures for GLES2
The core GLES2 API supports NPOT textures, i.e. there is no extension as for OpenGL, so we now add COGL_FEATURE_TEXTURE_NPOT to the feature flags in _cogl_features_init. Thanks to Gordon Williams for spotting this.
This commit is contained in:
parent
a5fe4ae4ec
commit
3c47a3beb5
@ -62,7 +62,8 @@ _cogl_features_init (void)
|
|||||||
flags |= COGL_FEATURE_FOUR_CLIP_PLANES;
|
flags |= COGL_FEATURE_FOUR_CLIP_PLANES;
|
||||||
|
|
||||||
#ifdef HAVE_COGL_GLES2
|
#ifdef HAVE_COGL_GLES2
|
||||||
flags |= COGL_FEATURE_SHADERS_GLSL | COGL_FEATURE_OFFSCREEN;
|
flags |= COGL_FEATURE_SHADERS_GLSL | COGL_FEATURE_OFFSCREEN
|
||||||
|
| COGL_FEATURE_TEXTURE_NPOT;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
flags |= COGL_FEATURE_VBOS;
|
flags |= COGL_FEATURE_VBOS;
|
||||||
|
Loading…
Reference in New Issue
Block a user