Index: gpu/command_buffer/service/gles2_cmd_decoder.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
index 81ce57d33e66dd0e5f6af5722932c30aebf264c1..097a82a03708f61b7a089c18d00d1bd3dfd3d56c 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -2925,6 +2925,10 @@ bool GLES2DecoderImpl::Initialize(const scoped_refptr<gfx::GLSurface>& surface, |
if (!feature_info_->gl_version_info().BehavesLikeGLES()) { |
glEnable(GL_VERTEX_PROGRAM_POINT_SIZE); |
glEnable(GL_POINT_SPRITE); |
+ } else if (feature_info_->gl_version_info().is_desktop_core_profile) { |
+ // The desktop core profile changed how program point size mode is |
+ // enabled. |
+ glEnable(GL_PROGRAM_POINT_SIZE); |
} |
has_robustness_extension_ = |
@@ -5543,6 +5547,10 @@ GLenum GLES2DecoderImpl::AdjustGetPname(GLenum pname) { |
features().use_img_for_multisampled_render_to_texture) { |
return GL_MAX_SAMPLES_IMG; |
} |
+ if (GL_ALIASED_POINT_SIZE_RANGE == pname && |
+ feature_info_->gl_version_info().is_desktop_core_profile) { |
+ return GL_POINT_SIZE_RANGE; |
+ } |
return pname; |
} |