Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/gu/guInternal.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ GuSettings gu_settings;
GuDisplayList* gu_list;
int gu_curr_context;
int gu_init;
int gu_first_start;
int gu_display_on;
int gu_call_mode;
int gu_states;
Expand Down
1 change: 1 addition & 0 deletions src/gu/guInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ extern GuSettings gu_settings;
extern GuDisplayList *gu_list;
extern int gu_curr_context;
extern int gu_init;
extern int gu_first_start;
extern int gu_display_on;
extern int gu_call_mode;
extern int gu_states;
Expand Down
2 changes: 2 additions & 0 deletions src/gu/sceGuInit.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ static void sceGuResetGlobalVariables(void)
unsigned int i;

gu_init = 0;
gu_first_start = 0;

gu_states = 0;
gu_object_stack_depth = 0;
Expand Down Expand Up @@ -371,5 +372,6 @@ int sceGuInit(void)
gu_settings.swapBuffersBehaviour = PSP_DISPLAY_SETBUF_NEXTHSYNC;

gu_init = 1;
gu_first_start = 1;
return 0;
}
4 changes: 2 additions & 2 deletions src/gu/sceGuStart.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int sceGuStart(int ctype, void *list)
gu_settings.signal_offset = 0;
}

if (!gu_init)
if (gu_first_start)
{
static int dither_matrix[16] =
{
Expand All @@ -67,7 +67,7 @@ int sceGuStart(int ctype, void *list)
sceGuSpecular(1.0f);
sceGuTexScale(1.0f, 1.0f);

gu_init = 1;
gu_first_start = 0;
}

if (ctype == GU_DIRECT && gu_draw_buffer.frame_width != 0)
Expand Down
2 changes: 2 additions & 0 deletions src/gu/sceGuTerm.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ void sceGuTerm(void)

sceKernelDeleteEventFlag(gu_settings.kernel_event_flag);
sceGeUnsetCallback(gu_settings.ge_callback_id);

gu_init = 0;
}