I could also replicate the problem on an nvidia box and I've pushed the
patch below which seems to fix it. test-conformance was also failing on
nvidia. I messed up the texcoord array caching patch so it wasn't
disabling arrays properly and it would probably end up reading stale
memory in glDrawArrays. Presumably we were getting away with this on
Mesa.

commit 401892af1188073dc3107832b8e2e908c5c0e79e
Author: Neil Roberts <[email protected]>
Date:   Thu May 27 14:51:44 2010 +0100

    cogl: Record new enabled arrays in _cogl_disable_other_texcoord_arrays
    
    When _cogl_disable_other_texcoord_arrays is called it disables the
    neccessary texcoord arrays and then removes the bits for the disabled
    arrays in ctx->texcoord_arrays_enabled. However none of the places
    that call the function then set any bits in ctx->texcoord_arrays_enabled
    so the arrays would never get marked and they would never get disabled
    again.
    
    This patch just changes it so that _cogl_disable_other_texcoord_arrays
    also sets the corresponding bits in ctx->texcoord_arrays_enabled.

- Neil
-- 
To unsubscribe send a mail to [email protected]

Reply via email to