aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar kkinnunen <kkinnunen@nvidia.com>2015-07-30 22:43:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-30 22:43:52 -0700
commitbf49e46aca85dc1a0ec089ccaefbb33e7ed6a7d5 (patch)
tree8ef68507414986141eeb593079da271fd58e79a0 /src
parent02d91d187324cd0f014a78eab1ca09ec71a9b356 (diff)
Make it possible to toggle MSAA for ES (EXT_multisample_compatibility)
Make it possible to turn MSAA on and off for OpenGL ES, too. Use EXT_multisample_compatibility. The extension adds token: MULTISAMPLE_EXT 0x809D The token can be supplied to glEnable/glDisable/glGetInteger. This is needed in order to support mixed samples in OpenGL ES. This is important for path rendering Chromium command buffer integration. Review URL: https://codereview.chromium.org/1270533002
Diffstat (limited to 'src')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index b0f6f2fcf7..a064b6a3e9 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -291,7 +291,7 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
if (kGL_GrGLStandard == standard) {
fMultisampleDisableSupport = true;
} else {
- fMultisampleDisableSupport = false;
+ fMultisampleDisableSupport = ctxInfo.hasExtension("GL_EXT_multisample_compatibility");
}
if (kGL_GrGLStandard == standard && version >= GR_GL_VER(3, 0)) {