Skip to content

Commit 85a7660

Browse files
committed
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 <[email protected]>
1 parent 63a47ff commit 85a7660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/platforms/webgl/qwebglcontext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ inline int imageSize(GLsizei width, GLsizei height, GLenum format, GLenum type,
147147
{ GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1, 2 },
148148
{ GL_RGB, GL_UNSIGNED_BYTE, 3 },
149149
{ GL_RGB, GL_UNSIGNED_SHORT_5_6_5, 2 },
150-
{ GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 1 },
150+
{ GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 2 },
151151
{ GL_LUMINANCE, GL_UNSIGNED_BYTE, 1 },
152152
{ GL_ALPHA, GL_UNSIGNED_BYTE, 1 },
153153

0 commit comments

Comments
 (0)