mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 19:24:46 +00:00
(PS3 RGL) Use rglGcmSetNopCommand instead of cellGcmSetNopCommandUnsafeInline
This commit is contained in:
parent
673d4ed2b9
commit
f03c53a646
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user