Paolo
Joined: 08 Nov 2005 Posts: 12
|
Posted: Tue Nov 08, 2005 12:41 am Post subject: [fixed] How to clear screen on 16 bit display mode? |
|
|
Hi!
First post here. :)
I'm trying to clear screen using sceGuClear. It works with pixel
format 8888, but with the rest of the display modes it fails.
I'm doing it like this:
| Code: |
void ClearScreen(u32 uColor) {
sceKernelDcacheWritebackAll();
sceGuStart(GU_DIRECT, s_iGuCmdList);
sceGuClearColor(uColor | 0xFF000000);
sceGuClear(GU_COLOR_BUFFER_BIT);
sceGuFinish();
sceGuSync(0, 0);
}
|
Should I pass 16bit color data to GU, or something?
What am I missing?
Thanks!
EDIT: Ok, the problem was buggy display mode setting. (Dough!) |
|