summaryrefslogtreecommitdiffstats
path: root/src/render/renderstates/renderstates_p.h
diff options
context:
space:
mode:
authorMauro Persano <mauro.persano@kdab.com>2017-06-07 11:04:22 -0300
committerMauro Persano <mauro.persano@kdab.com>2017-06-08 08:34:45 +0000
commit842b8fa5ef41135cc58a98e15d56497482dc5619 (patch)
treeba3abceb1cc57ed23f4961cfe19db4f5981e95ea /src/render/renderstates/renderstates_p.h
parent93ea4251c7771f11cf93b47651af3d4ede46d1f2 (diff)
Remove redundant code in AlphaCoverage/SeamlessCubemap render states
The render states AlphaCoverage and SeamlessCubemap will only be added to the render set when their nodes are enabled, so there's no need for an additional boolean field in their backend nodes. Task-number: QTBUG-60419 Change-Id: I3184c665b1d1bd10c067428b2acac6cfb68bd638 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/renderstates/renderstates_p.h')
-rw-r--r--src/render/renderstates/renderstates_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/render/renderstates/renderstates_p.h b/src/render/renderstates/renderstates_p.h
index c0062bb3d..66e9e079a 100644
--- a/src/render/renderstates/renderstates_p.h
+++ b/src/render/renderstates/renderstates_p.h
@@ -134,11 +134,10 @@ public:
void apply(GraphicsContext *gc) const Q_DECL_OVERRIDE;
};
-class Q_AUTOTEST_EXPORT AlphaCoverage : public GenericState<AlphaCoverage, AlphaCoverageStateMask, GLboolean>
+class Q_AUTOTEST_EXPORT AlphaCoverage : public GenericState<AlphaCoverage, AlphaCoverageStateMask>
{
public:
void apply(GraphicsContext *gc) const Q_DECL_OVERRIDE;
- void updateProperty(const char *name, const QVariant &value) Q_DECL_OVERRIDE;
};
class Q_AUTOTEST_EXPORT PointSize : public GenericState<PointSize, PointSizeMask, bool, GLfloat>
@@ -169,11 +168,10 @@ public:
void updateProperty(const char *name, const QVariant &value) Q_DECL_OVERRIDE;
};
-class Q_AUTOTEST_EXPORT SeamlessCubemap : public GenericState<SeamlessCubemap, SeamlessCubemapMask, GLboolean>
+class Q_AUTOTEST_EXPORT SeamlessCubemap : public GenericState<SeamlessCubemap, SeamlessCubemapMask>
{
public:
virtual void apply(GraphicsContext *gc) const Q_DECL_OVERRIDE;
- void updateProperty(const char *name, const QVariant &value) Q_DECL_OVERRIDE;
};
class Q_AUTOTEST_EXPORT StencilOp : public GenericState<StencilOp, StencilOpMask, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum>