From db486ad897d1cbe60dda13a2e3de7e0d830c889e Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Fri, 1 Mar 2019 15:14:09 +0100 Subject: 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 --- cogl/cogl/cogl-texture-2d.h | 25 ------------------------- 1 file changed, 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(). * - * 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(). - * * 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(). * - * 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(). - * * 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() * - * 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(). - * * 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(). * - * 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(). - * * Returns: (transfer full): A newly allocated #CoglTexture2D * * Since: 2.0 -- cgit v1.2.1