Only reload shaders if on opengl

This commit is contained in:
EmeraldLockdown 2026-04-01 16:46:05 -05:00
parent dbafac0c02
commit b6bf989c25

View file

@ -383,9 +383,11 @@ void gfx_delete_all() {
}
void gfx_reload_shaders() {
#ifdef RAPI_GL
gfx_remove_all_color_combiners();
RAPI.remove_shaders();
smlua_call_event_hooks(HOOK_ON_REFRESH_SHADERS);
#endif
}
struct CCFeatures *gfx_color_combiner_get_features(struct ColorCombiner *cc) {