Index: src/gpu/gl/GrGpuGL.cpp |
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp |
index eddccc39f67e626a0beb814cd4016a5ce6e8bf0b..b66feb27c06f954f691260dea5672b35edfd2c4d 100644 |
--- a/src/gpu/gl/GrGpuGL.cpp |
+++ b/src/gpu/gl/GrGpuGL.cpp |
@@ -639,7 +639,8 @@ bool GrGpuGL::uploadTexData(const GrGLTexture::Desc& desc, |
if (glFlipY) { |
GL_CALL(PixelStorei(GR_GL_UNPACK_FLIP_Y, GR_GL_TRUE)); |
} |
- GL_CALL(PixelStorei(GR_GL_UNPACK_ALIGNMENT, static_cast<GrGLint>(bpp))); |
+ GL_CALL(PixelStorei(GR_GL_UNPACK_ALIGNMENT, |
+ static_cast<GrGLint>(GrUnpackAlignment(dataConfig)))); |
} |
bool succeeded = true; |
if (isNewTexture && |
@@ -2697,6 +2698,11 @@ bool GrGpuGL::configToGLFormats(GrPixelConfig config, |
case kR11_EAC_GrPixelConfig: |
*internalFormat = GR_GL_COMPRESSED_R11; |
break; |
+ case kRGBA_float_GrPixelConfig: |
+ *internalFormat = GR_GL_RGBA32F; |
+ *externalFormat = GR_GL_RGBA; |
+ *externalType = GR_GL_FLOAT; |
+ break; |
default: |
return false; |
} |