Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1690483002: Fixed point sizes > 1 on desktop OpenGL Core Profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698