mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 14:08:05 +02:00
mesa: GL_BYTE vertex/texcoord arrays
This commit is contained in:
parent
394c1d1c53
commit
d17485fef9
2 changed files with 11 additions and 0 deletions
|
|
@ -53,6 +53,7 @@
|
|||
#define FEATURE_texture_fxt1 _HAVE_FULL_GL
|
||||
#define FEATURE_texture_s3tc _HAVE_FULL_GL
|
||||
#define FEATURE_userclip _HAVE_FULL_GL
|
||||
#define FEATURE_vertex_array_byte 0
|
||||
#define FEATURE_windowpos _HAVE_FULL_GL
|
||||
#define FEATURE_es2_glsl 0
|
||||
|
||||
|
|
|
|||
|
|
@ -120,6 +120,11 @@ _mesa_VertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
|
|||
case GL_FIXED:
|
||||
elementSize = size * sizeof(GLfixed);
|
||||
break;
|
||||
#endif
|
||||
#if FEATURE_vertex_array_byte
|
||||
case GL_BYTE:
|
||||
elementSize = size * sizeof(GLbyte);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
_mesa_error( ctx, GL_INVALID_ENUM, "glVertexPointer(type)" );
|
||||
|
|
@ -419,6 +424,11 @@ _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride,
|
|||
case GL_FIXED:
|
||||
elementSize = size * sizeof(GLfixed);
|
||||
break;
|
||||
#endif
|
||||
#if FEATURE_vertex_array_byte
|
||||
case GL_BYTE:
|
||||
elementSize = size * sizeof(GLbyte);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
_mesa_error( ctx, GL_INVALID_ENUM, "glTexCoordPointer(type)" );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue