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

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

Issue 1106833002: Emulate GL_PRIMITIVE_RESTART_FIXED_INDEX: part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_state.cc
diff --git a/gpu/command_buffer/service/context_state.cc b/gpu/command_buffer/service/context_state.cc
index 05ea8af6950f8977fcf9ca331c4b682d2aad71b4..5c5da8275053b1abfc106abf9dea885472572854 100644
--- a/gpu/command_buffer/service/context_state.cc
+++ b/gpu/command_buffer/service/context_state.cc
@@ -285,16 +285,8 @@ ErrorState* ContextState::GetErrorState() {
void ContextState::EnableDisable(GLenum pname, bool enable) const {
if (pname == GL_PRIMITIVE_RESTART_FIXED_INDEX) {
piman 2015/04/27 23:05:27 nit: can you add a TODO linking to the bug? I unde
Zhenyao Mo 2015/04/27 23:11:22 So here the behavior is correct. Nothing to be do
- // This is only available on Desktop GL 4.3+, but we emulate ES 3.0 on top
- // of Desktop GL 4.2+.
- const gfx::GLVersionInfo& gl_version = feature_info_->gl_version_info();
- if (!gl_version.is_es &&
- (gl_version.major_version < 4 ||
- (gl_version.major_version == 4 && gl_version.minor_version < 3))) {
- // TODO(zmo): Ignoring it may not be the best emulation.
- NOTIMPLEMENTED();
- return;
- }
+ if (feature_info_->feature_flags().emulate_primitive_restart_fixed_index)
+ pname = GL_PRIMITIVE_RESTART;
}
if (enable) {
glEnable(pname);
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698