qt6-bb10/src/opengl
Eirik Aavitsland b0056f052d Refix invalid glTexImage2D operation in FramebufferObject
A recent change fixed the texture format parameter to be RGB instead
of RGBA for opaque internal formats. However, this broke the RGB10
case, since the pixel type is then GL_UNSIGNED_INT_2_10_10_10_REV. The
doc says:

"GL_INVALID_OPERATION is generated if type is [...]
GL_UNSIGNED_INT_2_10_10_10_REV [...] and format is neither GL_RGBA nor
GL_BGRA."
https://registry.khronos.org/OpenGL-Refpages/gl4/html/glTexImage2D.xhtml

This modifies ba9e57d65f.

Pick-to: 6.7 6.6 6.5
Change-Id: I9a004331513179a3f840a007af0418d14e7f5dff
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2024-02-09 15:26:21 +01:00
..
doc Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
CMakeLists.txt Enable QT_NO_CONTEXTLESS_CONNECT for most of QtBase 2023-07-11 22:44:29 +02:00
qopengl2pexvertexarray.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengl2pexvertexarray_p.h Gui: mark types Q_PRIMITIVE_TYPE when they're held in QDataBuffer 2022-07-08 20:14:52 +00:00
qopenglbuffer.cpp QOpenGLBuffer: add move-SMFs and swap()s 2022-07-20 13:15:55 +02:00
qopenglbuffer.h QOpenGLBuffer: add move-SMFs and swap()s 2022-07-20 13:15:55 +02:00
qopenglcompositor.cpp Add an opportunity to grab via QOpenGLCompositor to FBO 2024-01-07 12:53:34 +00:00
qopenglcompositor_p.h Add an opportunity to grab via QOpenGLCompositor to FBO 2024-01-07 12:53:34 +00:00
qopenglcompositorbackingstore.cpp Make sure OpenGLContext is not nullptr 2024-01-10 16:16:46 +01:00
qopenglcompositorbackingstore_p.h Make rhiFlush() support custom source DPR 2022-06-14 21:16:35 +02:00
qopenglcustomshaderstage.cpp Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
qopenglcustomshaderstage_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengldebug.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qopengldebug.h Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
qopenglengineshadermanager.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qopenglengineshadermanager_p.h Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qopenglengineshadersource_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglframebufferobject.cpp Refix invalid glTexImage2D operation in FramebufferObject 2024-02-09 15:26:21 +01:00
qopenglframebufferobject.h Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
qopenglframebufferobject_p.h Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qopenglfunctions_1_0.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_0.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_1.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_1.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_2.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_2.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_3.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_3.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_4.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_4.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_5.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_5.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_2_0.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_2_0.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_2_1.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_2_1.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_0.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_0.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_1.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_1.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_2_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_2_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_2_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_2_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_3_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_3_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_3_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_3_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_0_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_0_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_0_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_0_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_1_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_1_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_1_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_1_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_2_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_2_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_2_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_2_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_3_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_3_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_3_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_3_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_4_compatibility.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_4_compatibility.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_4_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_4_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_5_compatibility.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_5_compatibility.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_5_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_5_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_es2.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_es2.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglgradientcache.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglgradientcache_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpaintdevice.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpaintdevice.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpaintdevice_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpaintengine.cpp Avoid incomplete textures in GL paint engine 2023-03-02 17:39:10 +00:00
qopenglpaintengine_p.h Avoid incomplete textures in GL paint engine 2023-03-02 17:39:10 +00:00
qopenglpixeltransferoptions.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpixeltransferoptions.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglqueryhelper_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglshadercache_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglshaderprogram.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qopenglshaderprogram.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltexture.cpp Add QImage null check when QOpenGLTexture converts 2023-03-21 11:55:53 +01:00
qopengltexture.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltexture_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltextureblitter.cpp QtOpenGL: Disambiguate class name QTextureBinder 2023-01-13 07:58:37 +01:00
qopengltextureblitter.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltexturecache.cpp Avoid incomplete textures in GL paint engine 2023-03-02 17:39:10 +00:00
qopengltexturecache_p.h Avoid incomplete textures in GL paint engine 2023-03-02 17:39:10 +00:00
qopengltextureglyphcache.cpp Fix broken Text rendering when noantialiased NativeRendering is used 2022-10-11 18:35:59 +02:00
qopengltextureglyphcache_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltexturehelper.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltexturehelper_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltextureuploader.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltextureuploader_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltimerquery.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltimerquery.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionfunctions.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qopenglversionfunctions.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionfunctions_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionfunctionsfactory.cpp Doc: Fix \fn template arguments for Qt OpenGL 2023-11-18 10:31:35 +01:00
qopenglversionfunctionsfactory.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionprofile.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionprofile.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglvertexarrayobject.cpp Avoid including qopenglfunctions header files if Qt is built with GLES2 2022-06-28 10:52:23 +02:00
qopenglvertexarrayobject.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglvertexarrayobject_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglwindow.cpp Add QOpenGLWindow/Widget doc note about depth/stencil 2023-03-16 10:26:40 +01:00
qopenglwindow.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtopenglglobal.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvkconvenience.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvkconvenience_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00