opengl add-on: Fix logical/bitwise mismatch. CID 11201

* The !DOUBLE actually wipes *all* GL settings causing the
  teapot depth issues.
* Teapot now renders properly, however still flickers red
  on mouse over.
* Disable tracing, it really spams the console when GL is
  working.
This commit is contained in:
Alexander von Gluck IV
2012-02-01 07:03:19 -06:00
parent bfb639d98a
commit f7167131ad
@@ -46,7 +46,7 @@ extern "C" {
#include "vbo/vbo.h" #include "vbo/vbo.h"
#define TRACE_SOFTGL //#define TRACE_SOFTGL
#ifdef TRACE_SOFTGL #ifdef TRACE_SOFTGL
# define TRACE(x...) printf("MesaSoftwareRenderer: " x) # define TRACE(x...) printf("MesaSoftwareRenderer: " x)
# define CALLED() printf("MesaSoftwareRenderer: %s\n", __PRETTY_FUNCTION__) # define CALLED() printf("MesaSoftwareRenderer: %s\n", __PRETTY_FUNCTION__)
@@ -219,7 +219,7 @@ MesaSoftwareRenderer::MesaSoftwareRenderer(BGLView* view, ulong options,
fColorSpace = BScreen(GLView()->Window()).ColorSpace(); fColorSpace = BScreen(GLView()->Window()).ColorSpace();
// We force single buffering for the time being // We force single buffering for the time being
options &= !BGL_DOUBLE; options &= ~BGL_DOUBLE;
const GLboolean rgbFlag = ((options & BGL_INDEX) == 0); const GLboolean rgbFlag = ((options & BGL_INDEX) == 0);
const GLboolean alphaFlag = ((options & BGL_ALPHA) == BGL_ALPHA); const GLboolean alphaFlag = ((options & BGL_ALPHA) == BGL_ALPHA);