mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
I am an idiot who sucks and makes bad assumptions about alpha.
SGI are bastards who use a 9-bit-byte framebuffer, use the extra bits to store pixel coverage, and can use the coverage bits for pixel alpha. This wont' be implemented for a good long while.
This commit is contained in:
parent
6f5af260e6
commit
b1081549b7
@ -1932,7 +1932,12 @@ static void render_spans_32(int start, int end, int tilenum, int shade, int text
|
||||
}
|
||||
}
|
||||
|
||||
if( !alpha_out )
|
||||
/* SGINUT 1/6/08: This fixes things in some games and breaks things in others.
|
||||
I believe the pixels should be discarded based on the alpha
|
||||
value stored in memory, but alpha and coverage are stored in
|
||||
anciliary bits in the framebuffer which are not currently
|
||||
emulated by MESS. */
|
||||
if( /*!alpha_out*/ 1 )
|
||||
{
|
||||
oz = (UINT16)zb[(fb_index + x) ^ WORD_ADDR_XOR];
|
||||
if (zbuffer)
|
||||
@ -2235,7 +2240,12 @@ static void render_spans_16(int start, int end, int tilenum, int shade, int text
|
||||
}
|
||||
}
|
||||
|
||||
if( !alpha_out )
|
||||
/* SGINUT 1/6/08: This fixes things in some games and breaks things in others.
|
||||
I believe the pixels should be discarded based on the alpha
|
||||
value stored in memory, but alpha and coverage are stored in
|
||||
anciliary bits in the framebuffer which are not currently
|
||||
emulated by MESS. */
|
||||
if( /*!alpha_out*/ 1 )
|
||||
{
|
||||
oz = (UINT16)zb[(fb_index + x) ^ WORD_ADDR_XOR];
|
||||
if (zbuffer)
|
||||
|
Loading…
Reference in New Issue
Block a user