mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 21:02:14 +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
391477e67b
commit
bf1ed7d67e
@ -62,7 +62,8 @@ _cogl_features_init (void)
|
||||
flags |= COGL_FEATURE_FOUR_CLIP_PLANES;
|
||||
|
||||
#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
|
||||
|
||||
flags |= COGL_FEATURE_VBOS;
|
||||
|
Loading…
Reference in New Issue
Block a user