mirror of
https://github.com/libretro/RetroArch
synced 2025-02-05 06:40:07 +00:00
(RGL PS3) Cleanups to glDrawArrays
This commit is contained in:
parent
150f38f884
commit
c4da6dcf35
@ -154,9 +154,4 @@ void gmmSetTileAttrib(
|
||||
|
||||
void *gmmGetTileData (const uint32_t id);
|
||||
|
||||
static inline uint8_t gmmIdIsMain (const uint32_t id)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user