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

Unified Diff: components/exo/buffer.cc

Issue 2639973002: Add target argument to Copy{Sub}TextureCHROMIUM entry point (Closed)
Patch Set: use dest_target instead of target Created 3 years, 11 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: components/exo/buffer.cc
diff --git a/components/exo/buffer.cc b/components/exo/buffer.cc
index 3096c04f210248c4884d8d4c4fd6ef339a881d1c..430e66c5caf05cac869b5485d2e55eb1e0f9d5a5 100644
--- a/components/exo/buffer.cc
+++ b/components/exo/buffer.cc
@@ -286,9 +286,9 @@ gpu::SyncToken Buffer::Texture::CopyTexImage(Texture* destination,
gles2->BindTexture(texture_target_, texture_id_);
DCHECK_NE(image_id_, 0u);
gles2->BindTexImage2DCHROMIUM(texture_target_, image_id_);
- gles2->CopyTextureCHROMIUM(texture_id_, 0, destination->texture_id_, 0,
- internalformat_, GL_UNSIGNED_BYTE, false, false,
- false);
+ gles2->CopyTextureCHROMIUM(texture_id_, 0, destination->texture_target_,
+ destination->texture_id_, 0, internalformat_,
+ GL_UNSIGNED_BYTE, false, false, false);
DCHECK_NE(query_id_, 0u);
gles2->BeginQueryEXT(query_type_, query_id_);
gles2->ReleaseTexImage2DCHROMIUM(texture_target_, image_id_);

Powered by Google App Engine
This is Rietveld 408576698