From 6c6dd6ad7de595f6acb73b9f85eba030ec2158f7 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 26 Jan 2019 23:07:59 +0000 Subject: [PATCH] Remove unused session_t argument from gl_has_extension Signed-off-by: Yuxuan Shui --- src/backend/gl/gl_common.h | 2 +- src/backend/gl/glx.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/gl/gl_common.h b/src/backend/gl/gl_common.h index bf20106..6c1e60f 100644 --- a/src/backend/gl/gl_common.h +++ b/src/backend/gl/gl_common.h @@ -118,7 +118,7 @@ static inline void gl_check_err_(const char *func, int line) { /** * Check if a GLX extension exists. */ -static inline bool gl_has_extension(session_t *ps, const char *ext) { +static inline bool gl_has_extension(const char *ext) { GLint nexts = 0; glGetIntegerv(GL_NUM_EXTENSIONS, &nexts); if (!nexts) { diff --git a/src/backend/gl/glx.c b/src/backend/gl/glx.c index 0337040..6bba38b 100644 --- a/src/backend/gl/glx.c +++ b/src/backend/gl/glx.c @@ -432,8 +432,8 @@ static void *glx_init(session_t *ps) { // Check GL_ARB_texture_non_power_of_two, requires a GLX context and // must precede FBConfig fetching - gd->cap.non_power_of_two_texture = gl_has_extension(ps, "GL_ARB_texture_non_" - "power_of_two"); + gd->cap.non_power_of_two_texture = gl_has_extension("GL_ARB_texture_non_" + "power_of_two"); gd->glXBindTexImage = (void *)glXGetProcAddress((const GLubyte *)"glXBindTexImage" "EXT");