summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/main.cpp b/source/main.cpp
index 5f45782..7a2ee9a 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -834,11 +834,9 @@ int main(int argc, char* argv[])
// view i.e, at a lower depth value
glDisable(GL_DEPTH_TEST);
// @note: im not entirely sure why we need to disable writing to the stencil buffer here
- // based on my testing, if we don't disable this, the highlight color that gets drawn infront
- // will cover the stencil values whereever it is. There is a subtle difference when this happens
- // but from what I have seen it just looks better and makes more sense when we have don't write to the
- // stencil mask because. I guess it also means that we donot want the highlights we draw to affect other
- // highlights
+ // based on my testing, if we don't disable this, the highlight color that gets drawn front
+ // will cover the stencil values wherever it is. If we disable this, then the highlight color
+ // that draws last will draw over the other highlights
glStencilMask(0x00);
glStencilFunc(GL_NOTEQUAL, 1, 0xFF);
{