mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
fix r128 rendering, lockups
mis-count in offset led to mis-rendering and lockups; units are 4 bytes rather than 1. Noticed by Chris Salch. fixes bug 7994, possibly others.
This commit is contained in:
parent
da82d86ea0
commit
25f21b5331
1 changed files with 2 additions and 2 deletions
|
|
@ -605,9 +605,9 @@ static void r128RenderStart( GLcontext *ctx )
|
|||
* build up a hardware vertex.
|
||||
*/
|
||||
if (RENDERINPUTS_TEST_RANGE( index_bitset, _TNL_FIRST_TEX, _TNL_LAST_TEX ))
|
||||
EMIT_ATTR( _TNL_ATTRIB_POS, EMIT_4F_VIEWPORT, R128_CCE_VC_FRMT_RHW, 16 );
|
||||
EMIT_ATTR( _TNL_ATTRIB_POS, EMIT_4F_VIEWPORT, R128_CCE_VC_FRMT_RHW, 4 );
|
||||
else
|
||||
EMIT_ATTR( _TNL_ATTRIB_POS, EMIT_3F_VIEWPORT, 0, 12 );
|
||||
EMIT_ATTR( _TNL_ATTRIB_POS, EMIT_3F_VIEWPORT, 0, 3 );
|
||||
|
||||
rmesa->coloroffset = offset;
|
||||
#if MESA_LITTLE_ENDIAN
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue