diff options
author | Adam Jackson <ajax@redhat.com> | 2019-03-06 12:15:40 -0500 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-03-11 23:50:10 +0000 |
commit | a555a2c8eba115425a81d7b84f3ca2163493c0d4 (patch) | |
tree | 41b44de1f16e4c32641b492078e7c0909100b89f | |
parent | 32504ae91770a1d6524a136f56ab437d4455a626 (diff) | |
download | mutter-a555a2c8eba115425a81d7b84f3ca2163493c0d4.tar.gz |
cogl: Remove unused CoglTextureDriver::try_setting_gl_border_color
https://gitlab.gnome.org/GNOME/mutter/merge_requests/480
-rw-r--r-- | cogl/cogl/cogl-texture-driver.h | 9 | ||||
-rw-r--r-- | cogl/cogl/driver/gl/gl/cogl-texture-driver-gl.c | 14 | ||||
-rw-r--r-- | cogl/cogl/driver/gl/gles/cogl-texture-driver-gles.c | 10 |
3 files changed, 0 insertions, 33 deletions
diff --git a/cogl/cogl/cogl-texture-driver.h b/cogl/cogl/cogl-texture-driver.h index f77c54880..a6e7d4f1a 100644 --- a/cogl/cogl/cogl-texture-driver.h +++ b/cogl/cogl/cogl-texture-driver.h @@ -172,15 +172,6 @@ struct _CoglTextureDriver 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 * creating a foreign texture. E.g. OpenGL supports ARB_texture_rectangle * but GLES doesn't diff --git a/cogl/cogl/driver/gl/gl/cogl-texture-driver-gl.c b/cogl/cogl/driver/gl/gl/cogl-texture-driver-gl.c index fbb55def5..35b87f7a7 100644 --- a/cogl/cogl/driver/gl/gl/cogl-texture-driver-gl.c +++ b/cogl/cogl/driver/gl/gl/cogl-texture-driver-gl.c @@ -485,19 +485,6 @@ _cogl_texture_driver_size_supported (CoglContext *ctx, 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 _cogl_texture_driver_allows_foreign_gl_target (CoglContext *ctx, GLenum gl_target) @@ -541,7 +528,6 @@ _cogl_texture_driver_gl = _cogl_texture_driver_gl_get_tex_image, _cogl_texture_driver_size_supported, _cogl_texture_driver_size_supported_3d, - _cogl_texture_driver_try_setting_gl_border_color, _cogl_texture_driver_allows_foreign_gl_target, _cogl_texture_driver_find_best_gl_get_data_format }; diff --git a/cogl/cogl/driver/gl/gles/cogl-texture-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-texture-driver-gles.c index 17f529e32..f773f93b8 100644 --- a/cogl/cogl/driver/gl/gles/cogl-texture-driver-gles.c +++ b/cogl/cogl/driver/gl/gles/cogl-texture-driver-gles.c @@ -590,15 +590,6 @@ _cogl_texture_driver_size_supported (CoglContext *ctx, 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 _cogl_texture_driver_allows_foreign_gl_target (CoglContext *ctx, GLenum gl_target) @@ -636,7 +627,6 @@ _cogl_texture_driver_gles = _cogl_texture_driver_gl_get_tex_image, _cogl_texture_driver_size_supported, _cogl_texture_driver_size_supported_3d, - _cogl_texture_driver_try_setting_gl_border_color, _cogl_texture_driver_allows_foreign_gl_target, _cogl_texture_driver_find_best_gl_get_data_format }; |