Logical Operations

A logical operation can be applied between the fragment and the value stored at the corresponding location in the frame buffer; the result replaces the current frame buffer value. You choose the desired logical operation with glLogicOp. Logical operations are performed only on color indexes, never on RGBA values.