diff options
author | dongseong.hwang <dongseong.hwang@intel.com> | 2014-11-21 11:54:41 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-21 19:55:06 +0000 |
commit | df36f0aebe453bdbe842c85b331f6f07a24255a2 (patch) | |
tree | 3d6b3ea41bac35f900724fec1747c0e29c3daa23 /gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc | |
parent | b2a77c768f3c6402eec83d2d0af1915fbf7f1d31 (diff) | |
download | chromium_src-df36f0aebe453bdbe842c85b331f6f07a24255a2.zip chromium_src-df36f0aebe453bdbe842c85b331f6f07a24255a2.tar.gz chromium_src-df36f0aebe453bdbe842c85b331f6f07a24255a2.tar.bz2 |
gpu: fix CopyTextureCHROMIUM for immutable texture.
We cannot use glCopyTexImage2D on the texture which is allocated by glTexStorage2D [1]
[1] https://www.opengl.org/registry/specs/ARB/texture_storage.txt
The fast path uses glCopyTexSubImage2D instead of glCopyTexImage2D.
In addition, optimize CopyTextureCHROMIUM for GL_TEXTURE_RECTANGLE_ARB,
which is often used by the compositor, so make CopyTextureCHROMIUM use
the fast path.
Review URL: https://codereview.chromium.org/744713002
Cr-Commit-Position: refs/heads/master@{#305268}
Diffstat (limited to 'gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc')
0 files changed, 0 insertions, 0 deletions