From 06402fd75669768d024e272e8a22930cb6ac5df0 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Mon, 17 Jun 2024 11:23:01 +0200 Subject: [PATCH] cogl: Remove unused TexturePixel Part-of: --- cogl/cogl/cogl-texture-2d-private.h | 1 - cogl/cogl/cogl-texture-private.h | 16 ---------------- 2 files changed, 17 deletions(-) diff --git a/cogl/cogl/cogl-texture-2d-private.h b/cogl/cogl/cogl-texture-2d-private.h index 0b976f2e0..3cc3b5d67 100644 --- a/cogl/cogl/cogl-texture-2d-private.h +++ b/cogl/cogl/cogl-texture-2d-private.h @@ -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; diff --git a/cogl/cogl/cogl-texture-private.h b/cogl/cogl/cogl-texture-private.h index 6338a1c21..5c5e192e7 100644 --- a/cogl/cogl/cogl-texture-private.h +++ b/cogl/cogl/cogl-texture-private.h @@ -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);