From 6b3fad0f530425e53df65ff078f17e51132f69b1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 2 Feb 2019 17:26:12 +0100 Subject: [PATCH] This can be removed now --- gfx/drivers_shader/shader_glsl.c | 44 -------------------------------- 1 file changed, 44 deletions(-) diff --git a/gfx/drivers_shader/shader_glsl.c b/gfx/drivers_shader/shader_glsl.c index 0179d3bafa..523886e099 100644 --- a/gfx/drivers_shader/shader_glsl.c +++ b/gfx/drivers_shader/shader_glsl.c @@ -158,50 +158,6 @@ static bool glsl_core; static unsigned glsl_major; static unsigned glsl_minor; -static bool gl_glsl_add_lut( - const struct video_shader *shader, - unsigned i, void *textures_data) -{ - struct texture_image img; - GLuint *textures_lut = (GLuint*)textures_data; - enum texture_filter_type filter_type = TEXTURE_FILTER_LINEAR; - - img.width = 0; - img.height = 0; - img.pixels = NULL; - img.supports_rgba = video_driver_supports_rgba(); - - if (!image_texture_load(&img, shader->lut[i].path)) - { - RARCH_ERR("[GL]: Failed to load texture image from: \"%s\"\n", - shader->lut[i].path); - return false; - } - - RARCH_LOG("[GL]: Loaded texture image from: \"%s\" ...\n", - shader->lut[i].path); - - if (shader->lut[i].filter == RARCH_FILTER_NEAREST) - filter_type = TEXTURE_FILTER_NEAREST; - - if (shader->lut[i].mipmap) - { - if (filter_type == TEXTURE_FILTER_NEAREST) - filter_type = TEXTURE_FILTER_MIPMAP_NEAREST; - else - filter_type = TEXTURE_FILTER_MIPMAP_LINEAR; - } - - gl_load_texture_data(textures_lut[i], - shader->lut[i].wrap, - filter_type, 4, - img.width, img.height, - img.pixels, sizeof(uint32_t)); - image_texture_free(&img); - - return true; -} - static bool gl_glsl_load_luts( const struct video_shader *shader, GLuint *textures_lut)