renderer/glcommon: remove dead code

This commit is contained in:
Andrei Alexeyev 2024-10-06 07:09:01 +02:00
parent 053edc4ad9
commit 68871bbe88
No known key found for this signature in database
GPG key ID: 72D26128040B9690
2 changed files with 0 additions and 15 deletions

View file

@ -180,20 +180,6 @@ ext_flag_t glcommon_check_extension(const char *ext) {
log_warn("Extension not supported"); \
} while(0)
ext_flag_t glcommon_require_extension(const char *ext) {
ext_flag_t val = glcommon_check_extension(ext);
if(!val) {
if(env_get("TAISEI_GL_REQUIRE_EXTENSION_FATAL", 0)) {
log_fatal("Required extension %s is not available", ext);
}
log_error("Required extension %s is not available, expect crashes or rendering errors", ext);
}
return val;
}
static void glcommon_ext_debug_output(void) {
EXT_FLAG(debug_output);

View file

@ -143,7 +143,6 @@ void glcommon_load_functions(void);
void glcommon_check_capabilities(void);
void glcommon_unload_library(void);
ext_flag_t glcommon_check_extension(const char *ext) attr_nonnull_all;
ext_flag_t glcommon_require_extension(const char *ext) attr_nonnull_all;
void glcommon_setup_attributes(SDL_GLprofile profile, uint major, uint minor, SDL_GLcontextFlag ctxflags);
struct glext_s {