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

Unified Diff: command_buffer/service/win/d3d9/effect_d3d9.cc

Issue 155188: Removing unneeded EffectStream class. Cleaning up data assignment for stream ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 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
« no previous file with comments | « command_buffer/service/win/d3d9/effect_d3d9.h ('k') | main.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: command_buffer/service/win/d3d9/effect_d3d9.cc
===================================================================
--- command_buffer/service/win/d3d9/effect_d3d9.cc (revision 20070)
+++ command_buffer/service/win/d3d9/effect_d3d9.cc (working copy)
@@ -351,11 +351,8 @@
if (size < sizeof(Desc)) // NOLINT
return false;
- Desc stream = streams_[index];
Desc *desc = static_cast<Desc *>(data);
- memset(desc, 0, sizeof(*desc));
- desc->semantic = stream.semantic;
- desc->semantic_index = stream.semantic_index;
+ *desc = streams_[index];
return true;
}
« no previous file with comments | « command_buffer/service/win/d3d9/effect_d3d9.h ('k') | main.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698