This commit is contained in:
smea 2015-01-02 16:41:07 -08:00
parent 1b80b69e73
commit 28fee06006
2 changed files with 3 additions and 0 deletions

View File

@ -468,6 +468,8 @@ void GPU_DrawArray(GPU_Primitive_t primitive, u32 n)
//set primitive type
GPUCMD_AddSingleParam(0x0002025E, primitive);
GPUCMD_AddSingleParam(0x0002025F, 0x00000001);
//index buffer address register should be cleared (except bit 31) before drawing
GPUCMD_AddSingleParam(0x000F0227, 0x80000000);
//pass number of vertices
GPUCMD_AddSingleParam(0x000F0228, n);

View File

@ -53,6 +53,7 @@ DVLB_s* SHDR_ParseSHBIN(u32* shbinData, u32 shbinSize)
goto exit;
clean1:
free(ret);
ret=NULL;
exit:
return ret;
}