[mutter] cogl/texture-2d: Remove notes about COGL_FEATURE_ID_TEXTURE_NPOT
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cogl/texture-2d: Remove notes about COGL_FEATURE_ID_TEXTURE_NPOT
- Date: Wed, 17 Apr 2019 20:22:04 +0000 (UTC)
commit db486ad897d1cbe60dda13a2e3de7e0d830c889e
Author: Robert Mader <robert mader posteo de>
Date: Fri Mar 1 15:14:09 2019 +0100
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().
*
- * <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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]