Commit f844a2ac authored by Massimo Callegari's avatar Massimo Callegari
Browse files

Add OpenGL core profile support to QtMultimediaQuickTools


When requesting a OGL Core profile via QSurfaceFormat::setDefaultFormat (e.g. to use Qt3D advanced features),
it is no longer possible to render QML Video items. This is because the requested shaders should be _core versions.
This patch adds the core shaders so QtMultimedia stops whining, and bind textures with the proper
format, since GL_LUMINANCE and GL_LUMINANCE_ALPHA are no longer valid in OGL 4.

Task-number: QTBUG-51064
Change-Id: I909e01e7dc7be07549e9ecf0a6425b309af38ea1
Reviewed-by: default avatarVaL Doroshchuk <valentyn.doroshchuk@qt.io>
Reviewed-by: default avatarChristian Stromme <christian.stromme@qt.io>
parent c1ca9510
Branches
Tags
Showing with 204 additions and 6 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment