diff options
author | Marek Olšák <[email protected]> | 2012-10-30 14:44:22 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-11-23 01:25:48 +0100 |
commit | 492b69f3be3e355064c67bc6f4a30d40e997ce9d (patch) | |
tree | a27e275bc324c6edacfe8dab73ead01512a2b844 /docs/GL3.txt | |
parent | de5e3774d04da66dbf85ca0705de38b7942943fe (diff) |
vbo: fix glVertexAttribI* functions
The functions were broken, because they converted ints to floats.
Now we can finally advertise OpenGL 3.0. ;)
In this commit, the vbo module also tracks the type for each attrib
in addition to the size. It can be one of FLOAT, INT, UNSIGNED_INT.
The little ugliness is the vertex attribs are declared as floats even though
there may be integer values. The code just copies integer values into them
without any conversion.
This implementation passes the glVertexAttribI piglit test which I am going
to commit in piglit soon. The test covers vertex arrays, immediate mode and
display lists.
NOTE: This is a candidate for the stable branches.
Reviewed-by: Brian Paul <[email protected]>
v2: cosmetic changes as suggested by Brian
(cherry picked from commit acf438f5375e2426386694e541b843dc6f8fd11a)
Diffstat (limited to 'docs/GL3.txt')
-rw-r--r-- | docs/GL3.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/GL3.txt b/docs/GL3.txt index 24b70a1a2be..90357797d0a 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -34,8 +34,7 @@ sRGB framebuffer format (GL_EXT_framebuffer_sRGB) DONE (i965, r600) glClearBuffer commands DONE glGetStringi command DONE glTexParameterI, glGetTexParameterI commands DONE -glVertexAttribI commands ~50% done (converts int - values to floats) +glVertexAttribI commands DONE Depth format cube textures DONE GLX_ARB_create_context (GLX 1.4 is required) DONE |