QOpenGLTexture: Fix typo in enum value

Pick-to: 6.1
Fixes: QTBUG-91431
Change-Id: I59c37de527f53339130216997402f325d0badb12
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Laszlo Agocs 2021-03-01 12:56:15 +01:00
parent 4a037e86d4
commit 2cfbce4bc6
2 changed files with 8 additions and 3 deletions

View File

@ -4258,7 +4258,7 @@ QOpenGLTexture::DepthStencilMode QOpenGLTexture::depthStencilMode() const
\value CompareLess Equivalent to GL_LESS.
\value CompareGreater Equivalent to GL_GREATER.
\value CompareEqual Equivalent to GL_EQUAL.
\value CommpareNotEqual Equivalent to GL_NOTEQUAL.
\value CompareNotEqual Equivalent to GL_NOTEQUAL.
\value CompareAlways Equivalent to GL_ALWAYS.
\value CompareNever Equivalent to GL_NEVER.

View File

@ -550,9 +550,14 @@ public:
CompareLess = 0x0201, // GL_LESS
CompareGreater = 0x0204, // GL_GREATER
CompareEqual = 0x0202, // GL_EQUAL
CommpareNotEqual = 0x0205, // GL_NOTEQUAL
CompareNotEqual = 0x0205, // GL_NOTEQUAL
CompareAlways = 0x0207, // GL_ALWAYS
CompareNever = 0x0200 // GL_NEVER
CompareNever = 0x0200, // GL_NEVER
#if QT_DEPRECATED_SINCE(6, 1)
CommpareNotEqual Q_DECL_ENUMERATOR_DEPRECATED_X(
"Use CompareNotEqual instead.") = CompareNotEqual
#endif
};
Q_ENUM(ComparisonFunction)