Search
lxdream.org :: lxdream :: r666:ea369bcf6def
lxdream 0.9.1
released Jun 29
Download Now
changeset666:ea369bcf6def
parent665:99ae9dc4cab7
child667:0e1ac8da75d9
authornkeynes
dateSat Apr 19 02:30:04 2008 +0000 (12 years ago)
Change secondary colour to 3-components - makes osx happy and is probably more correct anyway
src/pvr2/glrender.c
1.1 --- a/src/pvr2/glrender.c Sat Apr 19 00:36:36 2008 +0000
1.2 +++ b/src/pvr2/glrender.c Sat Apr 19 02:30:04 2008 +0000
1.3 @@ -269,7 +269,7 @@
1.4
1.5 /* Setup vertex array pointers */
1.6 glInterleavedArrays(GL_T2F_C4UB_V3F, sizeof(struct vertex_struct), pvr2_scene.vertex_array);
1.7 - glSecondaryColorPointerEXT(4, GL_UNSIGNED_BYTE, sizeof(struct vertex_struct), &pvr2_scene.vertex_array[0].offset_rgba );
1.8 + glSecondaryColorPointerEXT(3, GL_UNSIGNED_BYTE, sizeof(struct vertex_struct), &pvr2_scene.vertex_array[0].offset_rgba );
1.9
1.10 uint32_t bgplane_mode = MMIO_READ(PVR2, RENDER_BGPLANE);
1.11 uint32_t *bgplane = pvr2_scene.pvr2_pbuf + (((bgplane_mode & 0x00FFFFFF)) >> 3) ;
.