diff options
Diffstat (limited to 'src/gpu/gl/GrGLUtil.h')
-rw-r--r-- | src/gpu/gl/GrGLUtil.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLUtil.h b/src/gpu/gl/GrGLUtil.h index bc6fdf1757..570694af31 100644 --- a/src/gpu/gl/GrGLUtil.h +++ b/src/gpu/gl/GrGLUtil.h @@ -71,12 +71,21 @@ enum GrGLRenderer { *(p) = GR_GL_INIT_ZERO; \ GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \ } while (0) + #define GR_GL_GetTexLevelParameteriv(gl, t, l, pname, p) \ do { \ *(p) = GR_GL_INIT_ZERO; \ GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \ } while (0) +#define GR_GL_GetShaderPrecisionFormat(gl, st, pt, range, precision) \ + do { \ + (range)[0] = GR_GL_INIT_ZERO; \ + (range)[1] = GR_GL_INIT_ZERO; \ + (*precision) = GR_GL_INIT_ZERO; \ + GR_GL_CALL(gl, GetShaderPrecisionFormat(st, pt, range, precision)); \ + } while (0) + //////////////////////////////////////////////////////////////////////////////// /** |