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

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

Issue 2348243002: Force CUBE_MAP_POSITIVE_X texture allocation before CopyTexImage2D on Intel Mac (Closed)
Patch Set: rebase only Created 4 years, 3 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/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index c30d501ed0aec6d20eee1c50a3aba65c70d9d5a7..06a326083df3bbcd4641a96c28e2c3af60744367 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -13373,6 +13373,16 @@ void GLES2DecoderImpl::DoCopyTexImage2D(
glDeleteTextures(1, &temp_texture);
} else {
+ if (workarounds().do_teximage_before_copyteximage_to_cube_map &&
+ texture->target() == GL_TEXTURE_CUBE_MAP &&
+ target != GL_TEXTURE_CUBE_MAP_POSITIVE_X) {
+ TextureManager::DoTexImageArguments args = {
+ target, level, final_internal_format, width, height, 1, border,
+ format, type, nullptr, pixels_size, 0,
+ TextureManager::DoTexImageArguments::kTexImage2D };
+ texture_manager()->WorkaroundCopyTexImageCubeMap(&texture_state_,
+ &state_, &framebuffer_state_, texture_ref, func_name, args);
+ }
glCopyTexImage2D(target, level, final_internal_format, copyX, copyY,
copyWidth, copyHeight, border);
}
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | gpu/command_buffer/service/texture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698