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

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: update expectation 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 e2bd8d8f0f5922b42fe5f2ed20d532429b35e77b..d293c0af5430e2c2d30cde09805aafad9d92995f 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -13290,6 +13290,14 @@ void GLES2DecoderImpl::DoCopyTexImage2D(
glDeleteTextures(1, &temp_texture);
} else {
+ if (workarounds().do_texture_image_before_copy_texture_image &&
+ target == GL_TEXTURE_CUBE_MAP_NEGATIVE_X) {
piman 2016/09/19 20:33:13 Is it /really/ only GL_TEXTURE_CUBE_MAP_NEGATIVE_X
Ken Russell (switch to Gerrit) 2016/09/19 23:15:10 +1 to piman's comments -- also, if a separate work
qiankun 2016/09/20 11:34:16 Yes. They are similar. I used the same workaround
+ for (int i = 0; i < 6; ++i) {
+ GLenum face = GL_TEXTURE_CUBE_MAP_POSITIVE_X + i;
+ glTexImage2D(face, level, final_internal_format,
+ width, height, border, format, type, 0);
piman 2016/09/19 20:33:13 What if those were already defined? This would los
Ken Russell (switch to Gerrit) 2016/09/19 23:15:10 +1. Also, have you verified that it's necessary to
qiankun 2016/09/20 11:34:16 Do initialization for uninitialized GL_TEXTURE_CUB
+ }
+ }
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/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698