From d55a6891d18ee576a6f3e2c510eefee4a1639d7f Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 16 Sep 2021 13:07:20 +0200 Subject: rhi: gl: Have a way to state GL_TEXTURE_RECTANGLE is wanted Added specifically to support the deprecated CVOpenGLTextureCache on macOS, because Qt Multimedia still needs a way to use that when the applications requests using OpenGL instead of Metal. Follow what we did for GL_TEXTURE_EXTERNAL_OES, and add a flag that simply makes all our glBindTexture calls use the GL_TEXTURE_RECTANGLE[_ARB] target. Pick-to: 6.2 Change-Id: If818b13a9f520cdb8bdc16de84a3ca0e18ad6c33 Reviewed-by: Lars Knoll --- src/gui/rhi/qrhi_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/rhi/qrhi_p.h') diff --git a/src/gui/rhi/qrhi_p.h b/src/gui/rhi/qrhi_p.h index 527d72e486..d31838f52f 100644 --- a/src/gui/rhi/qrhi_p.h +++ b/src/gui/rhi/qrhi_p.h @@ -778,7 +778,8 @@ public: UsedWithLoadStore = 1 << 7, UsedAsCompressedAtlas = 1 << 8, ExternalOES = 1 << 9, - ThreeDimensional = 1 << 10 + ThreeDimensional = 1 << 10, + TextureRectangleGL = 1 << 11 }; Q_DECLARE_FLAGS(Flags, Flag) -- cgit v1.2.3