Index: src/gpu/gl/GrGpuGL.cpp |
=================================================================== |
--- src/gpu/gl/GrGpuGL.cpp (revision 7894) |
+++ src/gpu/gl/GrGpuGL.cpp (working copy) |
@@ -410,15 +410,17 @@ |
if (kDesktop_GrGLBinding == this->glBinding()) { |
// Desktop-only state that we never change |
robertphillips
2013/02/27 22:33:07
Shouldn't we instead check if they are enabled and
bsalomon
2013/02/28 14:09:41
You mean make glGetIntegerv calls? I assume that q
|
- GL_CALL(Disable(GR_GL_POINT_SMOOTH)); |
- GL_CALL(Disable(GR_GL_LINE_SMOOTH)); |
- GL_CALL(Disable(GR_GL_POLYGON_SMOOTH)); |
- GL_CALL(Disable(GR_GL_POLYGON_STIPPLE)); |
- GL_CALL(Disable(GR_GL_COLOR_LOGIC_OP)); |
+ if (!this->glCaps().isCoreProfile()) { |
+ GL_CALL(Disable(GR_GL_POINT_SMOOTH)); |
+ GL_CALL(Disable(GR_GL_LINE_SMOOTH)); |
+ GL_CALL(Disable(GR_GL_POLYGON_SMOOTH)); |
+ GL_CALL(Disable(GR_GL_POLYGON_STIPPLE)); |
+ GL_CALL(Disable(GR_GL_COLOR_LOGIC_OP)); |
+ GL_CALL(Disable(GR_GL_INDEX_LOGIC_OP)); |
+ } |
robertphillips
2013/02/27 22:33:07
Why not these other two?
bsalomon
2013/02/28 14:09:41
The offset fill and vp point size? They're still a
|
if (this->glCaps().imagingSupport()) { |
GL_CALL(Disable(GR_GL_COLOR_TABLE)); |
} |
- GL_CALL(Disable(GR_GL_INDEX_LOGIC_OP)); |
GL_CALL(Disable(GR_GL_POLYGON_OFFSET_FILL)); |
// Since ES doesn't support glPointSize at all we always use the VS to |
// set the point size |