Index: src/gpu/gl/GrGpuGL.cpp |
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp |
index df35d2c78c4e75d46a7b0d3e2a7f187eecf63b65..383427d9c28cf2cfc1dfd5ecd7273c1e54fdeb81 100644 |
--- a/src/gpu/gl/GrGpuGL.cpp |
+++ b/src/gpu/gl/GrGpuGL.cpp |
@@ -1894,14 +1894,14 @@ void GrGpuGL::flushStencil(const GrStencilSettings& stencilSettings, DrawType ty |
} |
} |
-void GrGpuGL::flushAAState(const GrOptDrawState& optState, DrawType type) { |
+void GrGpuGL::flushAAState(const GrOptDrawState& optState) { |
// At least some ATI linux drivers will render GL_LINES incorrectly when MSAA state is enabled but |
// the target is not multisampled. Single pixel wide lines are rendered thicker than 1 pixel wide. |
#if 0 |
// Replace RT_HAS_MSAA with this definition once this driver bug is no longer a relevant concern |
#define RT_HAS_MSAA rt->isMultisampled() |
#else |
- #define RT_HAS_MSAA (rt->isMultisampled() || kDrawLines_DrawType == type) |
+ #define RT_HAS_MSAA (rt->isMultisampled() || kDrawLines_DrawType == optState.drawType()) |
#endif |
const GrRenderTarget* rt = optState.getRenderTarget(); |