summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-11-02 17:49:47 +0000
committerBrian Paul <[email protected]>2006-11-02 17:49:47 +0000
commitabc73d9cba655479af493fabd13a488e5f7951eb (patch)
treec9960533183c15c91cd59f1b277913cd3dc08d8d /src/mesa/main/context.h
parent12fe1b3a580c267ccef53a5dbfd5183eaac1489b (diff)
new RGBA_LOGICOP_ENABLED() macro
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index c72fe8a56ac..e7e0fda72ea 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -317,4 +317,12 @@ do { \
)
+/**
+ * Is RGBA LogicOp enabled?
+ */
+#define RGBA_LOGICOP_ENABLED(CTX) \
+ ((CTX)->Color.ColorLogicOpEnabled || \
+ ((CTX)->Color.BlendEnabled && (CTX)->Color.BlendEquationRGB == GL_LOGIC_OP))
+
+
#endif /* CONTEXT_H */