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

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

Issue 2148723004: WebGL 2: make sure VertexAttrib type match the corresponding attrib type in shader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code clean Created 4 years, 5 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
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 c19ffa5272b5746ecf65646b057a25364cd65693..e1dc82f1d623a424471f1ad5892d3767619b2721 100644
--- a/gpu/command_buffer/service/context_state.cc
+++ b/gpu/command_buffer/service/context_state.cc
@@ -224,6 +224,10 @@ ContextState::ContextState(FeatureInfo* feature_info,
framebuffer_srgb_(false),
feature_info_(feature_info),
error_state_(ErrorState::Create(error_state_client, logger)) {
+ max_vertex_attribs_ = 0;
Zhenyao Mo 2016/07/22 14:36:47 This should go to the initialization list above.
+ generic_attrib_base_type_mask_.resize(1);
Zhenyao Mo 2016/07/22 14:36:47 No need for this.
+ generic_attrib_base_type_mask_[0] = 0xFFFFFFFF;
+
Initialize();
}

Powered by Google App Engine
This is Rietveld 408576698