can't use this in STATIC_ASSERT on windows
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 18 Feb 2011 21:07:35 +0000 (21:07 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 18 Feb 2011 21:07:35 +0000 (21:07 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@820 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/include/GrGLIRect.h

index b8638c0af922bef528a4d677b57bf49f83a87991..80237d91965505854d50f8f77c00b98b6fc7cdbd 100644 (file)
@@ -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