Skip to content

Commit

Permalink
use of gSPLoadGeometryMode for explicit modes
Browse files Browse the repository at this point in the history
  • Loading branch information
glankk committed Feb 25, 2018
1 parent f7129d6 commit b76520d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/gz/gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ void gfx_start(void)
void gfx_mode_init(void)
{
gfx_sync();
gSPClearGeometryMode(gfx_disp_p++, G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH |
G_CULL_BOTH | G_FOG | G_LIGHTING);
gSPLoadGeometryMode(gfx_disp_p++, 0);
gDPSetCycleType(gfx_disp_p++, G_CYC_1CYCLE);
gDPSetRenderMode(gfx_disp_p++, G_RM_XLU_SURF, G_RM_XLU_SURF2);
gDPSetScissor(gfx_disp_p++, G_SC_NON_INTERLACE,
Expand Down
2 changes: 1 addition & 1 deletion src/gz/item_option.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static int wheel_draw_proc(struct menu_item *item,
(
/* rsp state */
gsDPPipeSync(),
gsSPGeometryMode(~0, 0),
gsSPLoadGeometryMode(0),
/* rdp state */
gsDPSetCycleType(G_CYC_1CYCLE),
/* texture engine */
Expand Down

0 comments on commit b76520d

Please sign in to comment.