(RGL PS3) Cleanups to glDrawArrays

This commit is contained in:
twinaphex 2013-03-26 07:47:25 +01:00
parent 150f38f884
commit c4da6dcf35
2 changed files with 2 additions and 16 deletions

View File

@ -154,9 +154,4 @@ void gmmSetTileAttrib(
void *gmmGetTileData (const uint32_t id);
static inline uint8_t gmmIdIsMain (const uint32_t id)
{
return false;
}
#endif

View File

@ -2209,17 +2209,8 @@ GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count)
GCM_FUNC_NO_ARGS( cellGcmSetInvalidateVertexCache );
}
// if fpLoadProgramId is in main memory need set the CELL_GCM_LOCATION_MAIN
if ( gmmIdIsMain(driver->fpLoadProgramId) )
{
GCM_FUNC( cellGcmSetUpdateFragmentProgramParameterLocation,
gmmIdToOffset( driver->fpLoadProgramId ) + driver->fpLoadProgramOffset, CELL_GCM_LOCATION_MAIN );
}
else
{
GCM_FUNC( cellGcmSetUpdateFragmentProgramParameter,
gmmIdToOffset( driver->fpLoadProgramId ) + driver->fpLoadProgramOffset );
}
GCM_FUNC( cellGcmSetUpdateFragmentProgramParameter,
gmmIdToOffset( driver->fpLoadProgramId ) + driver->fpLoadProgramOffset );
rglGcmFifoGlDrawArrays(( rglGcmEnum )dparams->mode, dparams->firstVertex, dparams->vertexCount );
}