diff options
Diffstat (limited to 'gpu/include/GrGLIRect.h')
-rw-r--r-- | gpu/include/GrGLIRect.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/include/GrGLIRect.h b/gpu/include/GrGLIRect.h index b8638c0af9..80237d9196 100644 --- a/gpu/include/GrGLIRect.h +++ b/gpu/include/GrGLIRect.h @@ -14,7 +14,7 @@ struct GrGLIRect { GLsizei fHeight; void pushToGLViewport() const { - GR_GL(Viewport(fLeft, fBottom, fWidth, fHeight)); + GR_GL(Viewport(fLeft, fBottom, fWidth, fHeight)); } void pushToGLScissor() const { @@ -22,7 +22,7 @@ struct GrGLIRect { } void setFromGLViewport() { - GR_STATIC_ASSERT(sizeof(*this) == 4*sizeof(GLint)); + GR_STATIC_ASSERT(sizeof(GrGLIRect) == 4*sizeof(GLint)); GR_GL_GetIntegerv(GL_VIEWPORT, (GLint*) this); } @@ -61,4 +61,4 @@ struct GrGLIRect { bool operator !=(const GrGLIRect& glRect) const {return !(*this == glRect);} }; -#endif
\ No newline at end of file +#endif |