Commit 1a50fa32 authored by kbr's avatar kbr Committed by Commit bot

Fixed point sizes > 1 on desktop OpenGL Core Profile.

BUG=558738
CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel

Review URL: https://codereview.chromium.org/1690483002

Cr-Commit-Position: refs/heads/master@{#374823}
parent 41bd2e8b
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment