preload dialog text shader
This commit is contained in:
parent
a84f7c8629
commit
5187bb785d
3 changed files with 10 additions and 0 deletions
|
@ -415,3 +415,7 @@ void dialog_update(Dialog **d) {
|
|||
bool dialog_is_active(Dialog *d) {
|
||||
return d && (d->pos < d->count);
|
||||
}
|
||||
|
||||
void dialog_preload(void) {
|
||||
preload_resource(RES_SHADER_PROGRAM, "text_dialog", RESF_DEFAULT);
|
||||
}
|
||||
|
|
|
@ -82,6 +82,8 @@ void dialog_update(Dialog **d) attr_nonnull(1);
|
|||
|
||||
bool dialog_is_active(Dialog *d);
|
||||
|
||||
void dialog_preload(void);
|
||||
|
||||
// FIXME: might not be the best place for this
|
||||
typedef struct PlayerDialogProcs {
|
||||
void (*stage1_pre_boss)(Dialog *d);
|
||||
|
|
|
@ -628,6 +628,10 @@ static void stage_preload(void) {
|
|||
lasers_preload();
|
||||
enemies_preload();
|
||||
|
||||
if(global.stage->type != STAGE_SPELL) {
|
||||
dialog_preload();
|
||||
}
|
||||
|
||||
global.stage->procs->preload();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue