diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-18 15:51:52 +0200 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-18 15:51:52 +0200 |
| commit | b71a55bc489db6bc9beca5cee9cd584e82846ac8 (patch) | |
| tree | 11b668df8f90b92451ef468fa5f01d54c8204e38 /libpsn00b/psxgpu/env.c | |
| parent | 2f100c78c0f12b56bcd73c203e6216d415d9f772 (diff) | |
| download | psn00bsdk-b71a55bc489db6bc9beca5cee9cd584e82846ac8.tar.gz | |
Add MoveImage(), use draw queue for psxgpu VRAM APIs
Diffstat (limited to 'libpsn00b/psxgpu/env.c')
| -rw-r--r-- | libpsn00b/psxgpu/env.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpsn00b/psxgpu/env.c b/libpsn00b/psxgpu/env.c index 5642ad4..1b97026 100644 --- a/libpsn00b/psxgpu/env.c +++ b/libpsn00b/psxgpu/env.c @@ -37,7 +37,7 @@ DRAWENV *SetDefDrawEnv(DRAWENV *env, int x, int y, int w, int h) { return env; } -void DrawOTagEnv(const uint32_t *ot, DRAWENV *env) { +int DrawOTagEnv(const uint32_t *ot, DRAWENV *env) { DR_ENV *prim = &(env->dr_env); // All commands are grouped into a single display list packet for @@ -85,7 +85,7 @@ void DrawOTagEnv(const uint32_t *ot, DRAWENV *env) { //while (!(GPU_GP1 & (1 << 26))) //__asm__ volatile(""); - DrawOTag((const uint32_t *) prim); + return EnqueueDrawOp(&DrawOTag2, (uint32_t) prim, 0, 0); } void PutDrawEnv(DRAWENV *env) { |
