Skip to content

Commit

Permalink
renderer/glcommon: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Oct 6, 2024
1 parent 053edc4 commit 68871bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions src/renderer/glcommon/opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion src/renderer/glcommon/opengl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 68871bb

Please sign in to comment.