(PS3 RGL) Use rglGcmSetNopCommand instead of cellGcmSetNopCommandUnsafeInline

This commit is contained in:
twinaphex 2013-11-18 10:52:32 +01:00
parent 673d4ed2b9
commit f03c53a646

View File

@ -750,10 +750,14 @@ void rglCreatePushBuffer(void *data)
//add padding
if ( bufferSize > 0 )
{
int nopCount = ( program->constantPushBuffer + bufferSize ) - ( unsigned int * )rglGcmCurrent;
CellGcmContextData gcmContext;
CellGcmContextData gcmContext, *thisContext;
int i, nopCount;
nopCount = ( program->constantPushBuffer + bufferSize ) - ( unsigned int * )rglGcmCurrent;
gcmContext.current = (uint32_t*)rglGcmCurrent;
cellGcmSetNopCommandUnsafeInline(&gcmContext, nopCount);
thisContext = &gcmContext;
rglGcmSetNopCommand(thisContext, i, nopCount);
rglGcmCurrent = (typeof(rglGcmCurrent))gcmContext.current;
}
}