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

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

Issue 16240016: gpu: Make pack/unpack alignment part of autogenerated state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 09f2e1d365a2b199dbb0f56c64827bee64ab37d1..a68ddcd251298b2992536690e3cb879ba3c4a3b9 100644
--- a/gpu/command_buffer/service/context_state.cc
+++ b/gpu/command_buffer/service/context_state.cc
@@ -36,9 +36,7 @@ TextureUnit::~TextureUnit() {
}
ContextState::ContextState(FeatureInfo* feature_info, Logger* logger)
- : pack_alignment(4),
- unpack_alignment(4),
- active_texture_unit(0),
+ : active_texture_unit(0),
pack_reverse_row_order(false),
fbo_binding_for_scissor_workaround_dirty_(false),
feature_info_(feature_info),
@@ -136,9 +134,6 @@ void ContextState::RestoreAttribute(GLuint attrib_index) const {
void ContextState::RestoreGlobalState() const {
InitCapabilities();
InitState();
-
- glPixelStorei(GL_PACK_ALIGNMENT, pack_alignment);
- glPixelStorei(GL_UNPACK_ALIGNMENT, unpack_alignment);
}
void ContextState::RestoreState() const {

Powered by Google App Engine
This is Rietveld 408576698