diff options
author | Kimmo Kinnunen <kkinnunen@nvidia.com> | 2015-05-25 13:25:29 +0300 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-05-27 14:28:48 +0100 |
commit | 7c39114847cac07a37d6000f0507551739f5f6e7 (patch) | |
tree | b0f5d603ad99d1525f4fb23e971fe16113ed76b2 /helpers | |
parent | 82140f03b127508f8a3f5e1125d3ef4ebb295f81 (diff) |
specs: Update NV_path_rendering functions.
Update NV_path_rendering functions from newer GL specifications.
The functions are used in Skia open source graphics library now.
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/glsize.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helpers/glsize.hpp b/helpers/glsize.hpp index b3ef4abd..f0f2ae6b 100644 --- a/helpers/glsize.hpp +++ b/helpers/glsize.hpp @@ -1219,6 +1219,9 @@ _gl_PathColorGen_size(GLenum genMode, GLenum colorFormat) case GL_NONE: coeffsPerComponent = 0; break; + case GL_CONSTANT: + coeffsPerComponent = 1; + break; case GL_OBJECT_LINEAR: case GL_PATH_OBJECT_BOUNDING_BOX_NV: coeffsPerComponent = 3; @@ -1261,6 +1264,9 @@ _gl_PathTexGen_size(GLenum genMode, GLsizei components) switch (genMode) { case GL_NONE: return 0; + case GL_CONSTANT: + coeffsPerComponent = 1; + break; case GL_OBJECT_LINEAR: case GL_PATH_OBJECT_BOUNDING_BOX_NV: coeffsPerComponent = 3; @@ -1298,6 +1304,7 @@ static size_t valuesPerGetPathParameter(GLenum pname) case GL_PATH_CLIENT_LENGTH_NV: case GL_PATH_STROKE_COVER_MODE_NV: case GL_PATH_STROKE_MASK_NV: + case GL_PATH_STROKE_BOUND_NV: case GL_PATH_STROKE_OVERSAMPLE_COUNT_NV: case GL_PATH_SAMPLE_QUALITY_NV: return 1; |