diff options
author | Robert Mader <robert.mader@posteo.de> | 2019-03-01 15:14:09 +0100 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-04-17 20:14:59 +0000 |
commit | db486ad897d1cbe60dda13a2e3de7e0d830c889e (patch) | |
tree | 01cd08bc0e3cef072f8416481d0fbdedc89a3ae2 | |
parent | 8180927de25007b2b34a8be8c44a466bdbb36321 (diff) | |
download | mutter-db486ad897d1cbe60dda13a2e3de7e0d830c889e.tar.gz |
cogl/texture-2d: Remove notes about COGL_FEATURE_ID_TEXTURE_NPOT
NPOT capabilities were made madatory in OpenGL 2.0 and GLES 2.0,
so let's stop encouraging developers to write new code with checks
for it.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/467
-rw-r--r-- | cogl/cogl/cogl-texture-2d.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cogl/cogl/cogl-texture-2d.h b/cogl/cogl/cogl-texture-2d.h index 29b8b2d6b..e649f24f7 100644 --- a/cogl/cogl/cogl-texture-2d.h +++ b/cogl/cogl/cogl-texture-2d.h @@ -55,11 +55,6 @@ G_BEGIN_DECLS * made up of multiple 2D textures, or atlas textures where Cogl must * internally modify user texture coordinates before they can be used * by the GPU. - * - * You should be aware that many GPUs only support power of two sizes - * for #CoglTexture2D textures. You can check support for non power of - * two textures by checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature - * via cogl_has_feature(). */ typedef struct _CoglTexture2D CoglTexture2D; @@ -105,11 +100,6 @@ cogl_is_texture_2d (void *object); * using cogl_texture_set_components() and * cogl_texture_set_premultiplied(). * - * <note>Many GPUs only support power of two sizes for #CoglTexture2D - * textures. You can check support for non power of two textures by - * checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via - * cogl_has_feature().</note> - * * Returns: (transfer full): A new #CoglTexture2D object with no storage yet allocated. * * Since: 2.0 @@ -138,11 +128,6 @@ cogl_texture_2d_new_with_size (CoglContext *ctx, * using cogl_texture_set_components() and * cogl_texture_set_premultiplied(). * - * <note>Many GPUs only support power of two sizes for #CoglTexture2D - * textures. You can check support for non power of two textures by - * checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via - * cogl_has_feature().</note> - * * Return value: (transfer full): A newly created #CoglTexture2D or %NULL on failure * and @error will be updated. * @@ -179,11 +164,6 @@ cogl_texture_2d_new_from_file (CoglContext *ctx, * cogl_texture_2d_new_with_size() and then upload data using * cogl_texture_set_data()</note> * - * <note>Many GPUs only support power of two sizes for #CoglTexture2D - * textures. You can check support for non power of two textures by - * checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via - * cogl_has_feature().</note> - * * Returns: (transfer full): A newly allocated #CoglTexture2D, or if * the size is not supported (because it is too large or a * non-power-of-two size that the hardware doesn't support) @@ -218,11 +198,6 @@ cogl_texture_2d_new_from_data (CoglContext *ctx, * using cogl_texture_set_components() and * cogl_texture_set_premultiplied(). * - * <note>Many GPUs only support power of two sizes for #CoglTexture2D - * textures. You can check support for non power of two textures by - * checking for the %COGL_FEATURE_ID_TEXTURE_NPOT feature via - * cogl_has_feature().</note> - * * Returns: (transfer full): A newly allocated #CoglTexture2D * * Since: 2.0 |