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

Unified Diff: gpu/command_buffer/client/share_group.cc

Issue 2826043002: Do not share FBOs/VAOs/Transform feedback objects across contexts (Closed)
Patch Set: FBOs/VAOs should not be shared between contexts Created 3 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
Index: gpu/command_buffer/client/share_group.cc
diff --git a/gpu/command_buffer/client/share_group.cc b/gpu/command_buffer/client/share_group.cc
index d1041c06e3ae5b987da47d2f3c4fdf5c11a9a0f7..0741771aac7b5d76f5f75d6f69e30bcbc8beeaa9 100644
--- a/gpu/command_buffer/client/share_group.cc
+++ b/gpu/command_buffer/client/share_group.cc
@@ -352,7 +352,7 @@ ShareGroup::ShareGroup(bool bind_generates_resource, uint64_t tracing_guid)
: bind_generates_resource_(bind_generates_resource),
tracing_guid_(tracing_guid) {
if (bind_generates_resource) {
- for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) {
+ for (int i = 0; i < id_namespaces::kNumSharedIdNamespaces; ++i) {
if (i == id_namespaces::kProgramsAndShaders) {
id_handlers_[i].reset(new NonReusedIdHandler());
} else {
@@ -360,7 +360,7 @@ ShareGroup::ShareGroup(bool bind_generates_resource, uint64_t tracing_guid)
}
}
} else {
- for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) {
+ for (int i = 0; i < id_namespaces::kNumSharedIdNamespaces; ++i) {
if (i == id_namespaces::kProgramsAndShaders) {
id_handlers_[i].reset(new NonReusedIdHandler());
} else {

Powered by Google App Engine
This is Rietveld 408576698