From 53862ed4f444cc73afd5913cb04932c072d9d6dc Mon Sep 17 00:00:00 2001 From: "enne@chromium.org" Date: Mon, 25 Oct 2010 19:22:54 +0000 Subject: Fix antialiasing in WebGL. Fix command buffer issue where feature_info was being checked for an extension rather than using HasExtension to check the underlying GL implementation. BUG=59988 TEST=shiny teapot WebGL demo Review URL: http://codereview.chromium.org/3985001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63765 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/command_buffer/service/gles2_cmd_decoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gpu/command_buffer/service') diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc index aafa312..db44669 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc @@ -1768,7 +1768,7 @@ bool GLES2DecoderImpl::Initialize(gfx::GLContext* context, return false; if (attrib_parser.samples_ > 0 && attrib_parser.sample_buffers_ > 0 && - (feature_info_->feature_flags().chromium_framebuffer_multisample || + (context_->HasExtension("GL_EXT_framebuffer_multisample") || context_->HasExtension("GL_ANGLE_framebuffer_multisample"))) { // Per ext_framebuffer_multisample spec, need max bound on sample count. GLint max_sample_count; -- cgit v1.1