mirror of
https://github.com/pspdev/pspsdk.git
synced 2026-01-05 06:40:32 +00:00
Clean ups around sceGu
- 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`
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
|
||||
#include "guInternal.h"
|
||||
|
||||
void sceGuTexMode(int tpsm, int maxmips, int a2, int swizzle)
|
||||
void sceGuTexMode(int tpsm, int maxmips, int mc, int swizzle)
|
||||
{
|
||||
GuContext *context = &gu_contexts[gu_curr_context];
|
||||
context->texture_mode = tpsm;
|
||||
|
||||
sendCommandi(TEX_MODE, (maxmips << 16) | (a2 << 8) | (swizzle));
|
||||
sendCommandi(TEX_MODE, (maxmips << 16) | (mc << 8) | (swizzle));
|
||||
sendCommandi(TEX_FORMAT, tpsm);
|
||||
|
||||
sceGuTexFlush();
|
||||
|
||||
Reference in New Issue
Block a user