Descriptiongpu: 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291528
Patch Set 1 #
Total comments: 15
Patch Set 2 : Address reviewser's comments except for glTexSubImage2D #Patch Set 3 : Build fix on clang #
Messages
Total messages: 9 (0 generated)
|