forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpu: glCopyTextureCHROMIUM() checks dest internal format incorrectly.
|internal_format| which a client passes as argument and dest internal format which is the format of current destination texture can be different. If different, glCopyTextureCHROMIUM redefines the destination texture. So we should check dest internal format using |internal_format| argument. In addition, some platforms reports error when |internal_format| is GL_ALPHA, GL_LUMINANCE or GL_LUMINANCE_ALPHA, because those formats can not attached as color attachment of FBO on some platforms. So we restrict |internal_format| to GL_RGB and GL_RGBA. TEST=GLCopyTextureCHROMIUMTest.InternalFormat, GLCopyTextureCHROMIUMTest.RedefineDestinationTexture Review URL: https://codereview.chromium.org/481913005 Cr-Commit-Position: refs/heads/master@{#291528} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291528 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
dongseong.hwang@intel.com
committed
Aug 22, 2014
1 parent
cb81131
commit a6e3d28
Showing
3 changed files
with
146 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters