mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-04 01:00:09 +00:00
Improving SCE GU readability
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
|
||||
#include "guInternal.h"
|
||||
|
||||
void sceGuDepthBuffer(void* zbp, int zbw)
|
||||
void sceGuDepthBuffer(void *zbp, int zbw)
|
||||
{
|
||||
gu_draw_buffer.depth_buffer = zbp;
|
||||
|
||||
if (!gu_draw_buffer.depth_width || (gu_draw_buffer.depth_width != zbw))
|
||||
gu_draw_buffer.depth_width = zbw;
|
||||
|
||||
sendCommandi(158,((unsigned int)zbp) & 0xffffff);
|
||||
sendCommandi(159,((((unsigned int)zbp) & 0xff000000) >> 8)|zbw);
|
||||
sendCommandi(Z_BUF_PTR, ((unsigned int)zbp) & 0xffffff);
|
||||
sendCommandi(Z_BUF_WIDTH, ((((unsigned int)zbp) & 0xff000000) >> 8) | zbw);
|
||||
}
|
||||
|
Reference in New Issue
Block a user