diff options
author | Kevin Strasser <[email protected]> | 2016-10-10 14:29:58 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-11-09 14:35:20 -0800 |
commit | 1d6fe13c138efb836a28052b16260a258d113827 (patch) | |
tree | 2552b90dafa1cce30e3746926c2960b004a49e91 /src/mesa/main/glformats.c | |
parent | aeaf21ab3e6cb3e628ff0219461cbd06f3a99d34 (diff) |
mesa/extensions: expose OES_vertex_half_float for ES2
Half float support already exists for desktop GL. Reuse the
ARB_half_float_vertex enable bit and account for the different enum to
enable the extension for ES2.
Signed-off-by: Kevin Strasser <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/glformats.c')
-rw-r--r-- | src/mesa/main/glformats.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 85d00af487f..a95909c9bc9 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -546,6 +546,7 @@ _mesa_bytes_per_vertex_attrib(GLint comps, GLenum type) case GL_FLOAT: return comps * sizeof(GLfloat); case GL_HALF_FLOAT_ARB: + case GL_HALF_FLOAT_OES: return comps * sizeof(GLhalfARB); case GL_DOUBLE: return comps * sizeof(GLdouble); |