http://bugs.freedesktop.org/show_bug.cgi?id=23400
Summary: ogl conformance test - api-color segement fault error, patch for funcion is_interleaved_arrays is attached Product: Mesa Version: unspecified Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Mesa core AssignedTo: mesa3d-dev@lists.sourceforge.net ReportedBy: fei.ji...@intel.com Created an attachment (id=28770) --> (http://bugs.freedesktop.org/attachment.cgi?id=28770) patch_for_is_interleaved_arrays When I tried to resolve a ogl conformance test ”api-color” issue, I found is_interleaved_arrays function need a small change, patched is attached. In the following case, vertex array is not living in a VBO, while color array is living in a VBO, and their stride is same. It is not a interleaved array, but function is_interleaved_arrays will return GL_TRUE. I add “abs(arrays[mesaAttr]->Ptr - firstAddr) > firstStride” conditional statement for that case. glVertexPointer (2, GL_FLOAT, 0, vbuf); glEnableClientState (GL_VERTEX_ARRAY); …… glGenBuffersARB(2, array_id); glBindBufferARB(GL_ARRAY_BUFFER_ARB, array_id[0]); glColorPointer (attr[apiType].dim, attr[apiType].type, stride, 0); glEnableClientState (GL_COLOR_ARRAY); glBufferDataARB(GL_ARRAY_BUFFER_ARB, MAX_STRIDE * 4 * sizeof(char), cbuf, GL_STATIC_DRAW_ARB); …… glDrawArrays (GL_QUAD_STRIP, 0, 4); -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev