diff options
author | Andy Shaw <andy.shaw@qt.io> | 2019-11-19 06:09:18 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2019-11-19 10:12:34 +0000 |
commit | 85a76601426bd1ba7ce12d719c14140e8d6584b7 (patch) | |
tree | af93f4f6e9ebba607eb8eaf995ab3275c265ea2e | |
parent | 63a47ff1f83c64e6865edd61657ad1d636fcae23 (diff) |
Set the bytes per pixel for LUMINANCE_ALPHA to 2
This corrects a case where the camera was being used in a
multimedia example that was being streamed and the colors were
not correct as the some of the data was lost as a result.
Fixes: QTBUG-79181
Change-Id: I8ab02b525c6d54b0005f00d06969aa3ebbac4d20
Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
-rw-r--r-- | src/plugins/platforms/webgl/qwebglcontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/webgl/qwebglcontext.cpp b/src/plugins/platforms/webgl/qwebglcontext.cpp index c1ee009..5857883 100644 --- a/src/plugins/platforms/webgl/qwebglcontext.cpp +++ b/src/plugins/platforms/webgl/qwebglcontext.cpp @@ -147,7 +147,7 @@ inline int imageSize(GLsizei width, GLsizei height, GLenum format, GLenum type, { GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1, 2 }, { GL_RGB, GL_UNSIGNED_BYTE, 3 }, { GL_RGB, GL_UNSIGNED_SHORT_5_6_5, 2 }, - { GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 1 }, + { GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 2 }, { GL_LUMINANCE, GL_UNSIGNED_BYTE, 1 }, { GL_ALPHA, GL_UNSIGNED_BYTE, 1 }, |