[Mesa-dev] [Bug 74010] mesa-10.0.2: z-buffer issue with opengl 3.3 context on intel

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jan 24 01:15:29 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=74010

--- Comment #2 from Evgeny Bobkin <evgen.ibqn at gmail.com> ---
another issue is that if 

    glGenVertexArrays (1, &vao_id);
    glBindVertexArray (vao_id);

from lines 46-47 are not used and the is drawn with

    glEnableVertexAttribArray (position_id);
    glBindBuffer (GL_ARRAY_BUFFER, vertex_buffer);
    glVertexAttribPointer (position_id, 3, GL_FLOAT, GL_FALSE, 0, nullptr);

    glEnableVertexAttribArray (color_id);
    glBindBuffer (GL_ARRAY_BUFFER, color_buffer);
    glVertexAttribPointer (color_id, 3, GL_FLOAT, GL_FALSE, 0, nullptr);

    glDrawArrays (GL_TRIANGLES, 0, 36);


instead of

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140124/6cd4e1eb/attachment.html>


More information about the mesa-dev mailing list