1
0
Fork 0

cogl: Remove unused TexturePixel

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3818>
This commit is contained in:
Bilal Elmoussaoui 2024-06-17 11:23:01 +02:00 committed by Marge Bot
parent c9c64f0990
commit 06402fd756
2 changed files with 0 additions and 17 deletions

View file

@ -58,7 +58,6 @@ struct _CoglTexture2D
GLenum gl_legacy_texobj_mag_filter;
GLint gl_legacy_texobj_wrap_mode_s;
GLint gl_legacy_texobj_wrap_mode_t;
CoglTexturePixel first_pixel;
struct {
void *user_data;

View file

@ -224,22 +224,6 @@ typedef enum _CoglTextureChangeFlags
} CoglTextureChangeFlags;
typedef struct _CoglTexturePixel CoglTexturePixel;
/* This is used by the texture backends to store the first pixel of
each GL texture. This is only used when glGenerateMipmap is not
available so that we can temporarily set GL_GENERATE_MIPMAP and
reupload a pixel */
struct _CoglTexturePixel
{
/* We need to store the format of the pixel because we store the
data in the source format which might end up being different for
each slice if a subregion is updated with a different format */
GLenum gl_format;
GLenum gl_type;
uint8_t data[4];
};
gboolean
_cogl_texture_can_hardware_repeat (CoglTexture *texture);