gl_glsl_set_proc_address unneeded - remove it

This commit is contained in:
twinaphex 2020-08-04 03:58:51 +02:00
parent bcd743d3c5
commit a1ce1e4f1d
3 changed files with 2 additions and 14 deletions

View File

@ -2049,11 +2049,8 @@ static bool gl2_shader_init(gl_t *gl, const gfx_ctx_driver_t *ctx_driver,
#ifdef HAVE_GLSL
if (type == RARCH_SHADER_GLSL)
{
gl_glsl_set_get_proc_address(ctx_driver->get_proc_address);
gl_glsl_set_context_type(gl->core_context_in_use,
hwr->version_major, hwr->version_minor);
}
hwr->version_major, hwr->version_minor);
#endif
init_data.gl.core_context_enabled = gl->core_context_in_use;

View File

@ -68,8 +68,6 @@ struct glsl_attrib
GLsizei offset;
};
static gfx_ctx_proc_t (*glsl_get_proc_address)(const char*);
struct shader_uniforms_frame
{
int texture;
@ -1606,15 +1604,10 @@ static void gl_glsl_get_flags(uint32_t *flags)
BIT32_SET(*flags, GFX_CTX_FLAGS_SHADERS_GLSL);
}
void gl_glsl_set_get_proc_address(gfx_ctx_proc_t (*proc)(const char*))
{
glsl_get_proc_address = proc;
}
void gl_glsl_set_context_type(bool core_profile,
unsigned major, unsigned minor)
{
glsl_core = core_profile;
glsl_core = core_profile;
glsl_major = major;
glsl_minor = minor;
}

View File

@ -21,8 +21,6 @@
#include "../video_defines.h"
void gl_glsl_set_get_proc_address(gfx_ctx_proc_t (*proc)(const char*));
void gl_glsl_set_context_type(bool core_profile, unsigned major, unsigned minor);
#endif