mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
cogl: Remove unused CoglTextureDriver::try_setting_gl_border_color
https://gitlab.gnome.org/GNOME/mutter/merge_requests/480
This commit is contained in:
parent
32504ae917
commit
a555a2c8eb
@ -171,15 +171,6 @@ struct _CoglTextureDriver
|
|||||||
int height,
|
int height,
|
||||||
int depth);
|
int depth);
|
||||||
|
|
||||||
/*
|
|
||||||
* This driver abstraction is needed because GLES doesn't support setting
|
|
||||||
* a texture border color.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
(* try_setting_gl_border_color) (CoglContext *ctx,
|
|
||||||
GLuint gl_target,
|
|
||||||
const GLfloat *transparent_color);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* It may depend on the driver as to what texture targets may be used when
|
* It may depend on the driver as to what texture targets may be used when
|
||||||
* creating a foreign texture. E.g. OpenGL supports ARB_texture_rectangle
|
* creating a foreign texture. E.g. OpenGL supports ARB_texture_rectangle
|
||||||
|
@ -485,19 +485,6 @@ _cogl_texture_driver_size_supported (CoglContext *ctx,
|
|||||||
return new_width != 0;
|
return new_width != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
_cogl_texture_driver_try_setting_gl_border_color
|
|
||||||
(CoglContext *ctx,
|
|
||||||
GLuint gl_target,
|
|
||||||
const GLfloat *transparent_color)
|
|
||||||
{
|
|
||||||
/* Use a transparent border color so that we can leave the
|
|
||||||
color buffer alone when using texture co-ordinates
|
|
||||||
outside of the texture */
|
|
||||||
GE( ctx, glTexParameterfv (gl_target, GL_TEXTURE_BORDER_COLOR,
|
|
||||||
transparent_color) );
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
_cogl_texture_driver_allows_foreign_gl_target (CoglContext *ctx,
|
_cogl_texture_driver_allows_foreign_gl_target (CoglContext *ctx,
|
||||||
GLenum gl_target)
|
GLenum gl_target)
|
||||||
@ -541,7 +528,6 @@ _cogl_texture_driver_gl =
|
|||||||
_cogl_texture_driver_gl_get_tex_image,
|
_cogl_texture_driver_gl_get_tex_image,
|
||||||
_cogl_texture_driver_size_supported,
|
_cogl_texture_driver_size_supported,
|
||||||
_cogl_texture_driver_size_supported_3d,
|
_cogl_texture_driver_size_supported_3d,
|
||||||
_cogl_texture_driver_try_setting_gl_border_color,
|
|
||||||
_cogl_texture_driver_allows_foreign_gl_target,
|
_cogl_texture_driver_allows_foreign_gl_target,
|
||||||
_cogl_texture_driver_find_best_gl_get_data_format
|
_cogl_texture_driver_find_best_gl_get_data_format
|
||||||
};
|
};
|
||||||
|
@ -590,15 +590,6 @@ _cogl_texture_driver_size_supported (CoglContext *ctx,
|
|||||||
return width <= max_size && height <= max_size;
|
return width <= max_size && height <= max_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
_cogl_texture_driver_try_setting_gl_border_color
|
|
||||||
(CoglContext *ctx,
|
|
||||||
GLuint gl_target,
|
|
||||||
const GLfloat *transparent_color)
|
|
||||||
{
|
|
||||||
/* FAIL! */
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
_cogl_texture_driver_allows_foreign_gl_target (CoglContext *ctx,
|
_cogl_texture_driver_allows_foreign_gl_target (CoglContext *ctx,
|
||||||
GLenum gl_target)
|
GLenum gl_target)
|
||||||
@ -636,7 +627,6 @@ _cogl_texture_driver_gles =
|
|||||||
_cogl_texture_driver_gl_get_tex_image,
|
_cogl_texture_driver_gl_get_tex_image,
|
||||||
_cogl_texture_driver_size_supported,
|
_cogl_texture_driver_size_supported,
|
||||||
_cogl_texture_driver_size_supported_3d,
|
_cogl_texture_driver_size_supported_3d,
|
||||||
_cogl_texture_driver_try_setting_gl_border_color,
|
|
||||||
_cogl_texture_driver_allows_foreign_gl_target,
|
_cogl_texture_driver_allows_foreign_gl_target,
|
||||||
_cogl_texture_driver_find_best_gl_get_data_format
|
_cogl_texture_driver_find_best_gl_get_data_format
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user