mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-24 12:42:36 +00:00
- Fix sceGuBreak - Fix sceGuContinue - Fix sceGuDrawArrayN - Fix sceGuMorphWeight - Remove unnecessary 0xffffff as it is done by sendCommandi - Improve the name of some parameters - Create and use GU_MAX_STATUS - Remove magic numbers in `sceGuMaterial` - Remove magic numbers in `sceGuMorphWeight` - Remove magic numbers in `sceGuSetMatrix` - Remove magic numbers in `sceGuSignal`
24 lines
633 B
C
24 lines
633 B
C
/*
|
|
* PSP Software Development Kit - https://github.com/pspdev
|
|
* -----------------------------------------------------------------------
|
|
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
|
*
|
|
* Copyright (c) 2005 Jesper Svennevid
|
|
*/
|
|
|
|
#include "guInternal.h"
|
|
|
|
void sceGuEndObject(void)
|
|
{
|
|
// rewrite commands from sceGuBeginObject()
|
|
|
|
unsigned int *current = gu_list->current;
|
|
gu_list->current = gu_object_stack[gu_object_stack_depth - 1];
|
|
|
|
sendCommandi(BASE, (((unsigned int)current) >> 8) & 0xf0000);
|
|
sendCommandi(BJUMP, (unsigned int)current);
|
|
gu_list->current = current;
|
|
|
|
gu_object_stack_depth--;
|
|
}
|