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

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

Issue 224763002: Remove default textures in (!bind_generates_resource) context groups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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_group.cc
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index c9e0088ee6a253400367015088d6397b28c87c50..7a8b1756eff2f763a9c753ea0884fe98f7db5a45 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -180,6 +180,7 @@ bool ContextGroup::Initialize(
max_texture_size,
max_cube_map_texture_size));
texture_manager_->set_framebuffer_manager(framebuffer_manager_.get());
+ texture_manager_->set_use_default_textures(bind_generates_resource_);
piman 2014/04/04 02:50:28 Could we pass this to the constructor? It's not li
vmiura 2014/04/04 18:32:57 There are many tests that construct this, so origi
const GLint kMinTextureImageUnits = 8;
const GLint kMinVertexTextureImageUnits = 0;

Powered by Google App Engine
This is Rietveld 408576698