Remove unused session_t argument from gl_has_extension
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
031356069a
commit
6c6dd6ad7d
|
@ -118,7 +118,7 @@ static inline void gl_check_err_(const char *func, int line) {
|
||||||
/**
|
/**
|
||||||
* Check if a GLX extension exists.
|
* 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;
|
GLint nexts = 0;
|
||||||
glGetIntegerv(GL_NUM_EXTENSIONS, &nexts);
|
glGetIntegerv(GL_NUM_EXTENSIONS, &nexts);
|
||||||
if (!nexts) {
|
if (!nexts) {
|
||||||
|
|
|
@ -432,8 +432,8 @@ static void *glx_init(session_t *ps) {
|
||||||
|
|
||||||
// Check GL_ARB_texture_non_power_of_two, requires a GLX context and
|
// Check GL_ARB_texture_non_power_of_two, requires a GLX context and
|
||||||
// must precede FBConfig fetching
|
// must precede FBConfig fetching
|
||||||
gd->cap.non_power_of_two_texture = gl_has_extension(ps, "GL_ARB_texture_non_"
|
gd->cap.non_power_of_two_texture = gl_has_extension("GL_ARB_texture_non_"
|
||||||
"power_of_two");
|
"power_of_two");
|
||||||
|
|
||||||
gd->glXBindTexImage = (void *)glXGetProcAddress((const GLubyte *)"glXBindTexImage"
|
gd->glXBindTexImage = (void *)glXGetProcAddress((const GLubyte *)"glXBindTexImage"
|
||||||
"EXT");
|
"EXT");
|
||||||
|
|
Loading…
Reference in New Issue