aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGpuGLFixed.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-30 18:13:44 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-30 18:13:44 +0000
commitaeb2160b1dd34f8e640e8e56544fe407d4ff6311 (patch)
tree029e885629354c8968e74c944dd7abc31adc9522 /gpu/src/GrGpuGLFixed.cpp
parentdec9f2d3517c5b78d3bff0b965a7e07042b19875 (diff)
Add GrAAHairLinePathRenderer
Review URL: http://codereview.appspot.com/4926045 git-svn-id: http://skia.googlecode.com/svn/trunk@2196 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGpuGLFixed.cpp')
-rw-r--r--gpu/src/GrGpuGLFixed.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/gpu/src/GrGpuGLFixed.cpp b/gpu/src/GrGpuGLFixed.cpp
index 69bf94f533..2c97e69ce2 100644
--- a/gpu/src/GrGpuGLFixed.cpp
+++ b/gpu/src/GrGpuGLFixed.cpp
@@ -276,15 +276,22 @@ void GrGpuGLFixed::setupGeometry(int* startVertex,
int newColorOffset;
int newTexCoordOffsets[kNumStages];
+ int newEdgeOffset;
GrGLsizei newStride = VertexSizeAndOffsetsByStage(this->getGeomSrc().fVertexLayout,
newTexCoordOffsets,
- &newColorOffset);
+ &newColorOffset,
+ &newEdgeOffset);
+ GrAssert(-1 == newEdgeOffset); // not supported by fixed pipe
+
int oldColorOffset;
int oldTexCoordOffsets[kNumStages];
+ int oldEdgeOffset;
GrGLsizei oldStride = VertexSizeAndOffsetsByStage(fHWGeometryState.fVertexLayout,
oldTexCoordOffsets,
- &oldColorOffset);
+ &oldColorOffset,
+ &oldEdgeOffset);
+ GrAssert(-1 == oldEdgeOffset);
bool indexed = NULL != startIndex;