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:02:09 -06:00
parent bfb639d98a
commit f7167131ad
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ extern "C" {
#include "vbo/vbo.h"
#define TRACE_SOFTGL
//#define TRACE_SOFTGL
#ifdef TRACE_SOFTGL
# define TRACE(x...) printf("MesaSoftwareRenderer: " x)
# define CALLED() printf("MesaSoftwareRenderer: %s\n", __PRETTY_FUNCTION__)
@ -219,7 +219,7 @@ MesaSoftwareRenderer::MesaSoftwareRenderer(BGLView* view, ulong options,
fColorSpace = BScreen(GLView()->Window()).ColorSpace();
// We force single buffering for the time being
options &= !BGL_DOUBLE;
options &= ~BGL_DOUBLE;
const GLboolean rgbFlag = ((options & BGL_INDEX) == 0);
const GLboolean alphaFlag = ((options & BGL_ALPHA) == BGL_ALPHA);