synched with trunk at revision 36569
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
/*
|
||||
* $Id$
|
||||
* ***** BEGIN GPL LICENSE BLOCK *****
|
||||
*
|
||||
@@ -25,6 +25,11 @@
|
||||
*
|
||||
* ***** END GPL LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
/** \file gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
|
||||
* \ingroup bgerastogl
|
||||
*/
|
||||
|
||||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
@@ -123,16 +128,16 @@ bool RAS_OpenGLRasterizer::Init()
|
||||
glFrontFace(GL_CCW);
|
||||
m_last_frontface = true;
|
||||
|
||||
glClearColor(m_redback,m_greenback,m_blueback,m_alphaback);
|
||||
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
|
||||
m_redback = 0.4375;
|
||||
m_greenback = 0.4375;
|
||||
m_blueback = 0.4375;
|
||||
m_alphaback = 0.0;
|
||||
|
||||
glClearColor(m_redback,m_greenback,m_blueback,m_alphaback);
|
||||
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
|
||||
glShadeModel(GL_SMOOTH);
|
||||
|
||||
return true;
|
||||
@@ -302,6 +307,8 @@ bool RAS_OpenGLRasterizer::BeginFrame(int drawingmode, double time)
|
||||
|
||||
glShadeModel(GL_SMOOTH);
|
||||
|
||||
glEnable(GL_MULTISAMPLE_ARB);
|
||||
|
||||
m_2DCanvas->BeginFrame();
|
||||
|
||||
return true;
|
||||
@@ -424,6 +431,9 @@ void RAS_OpenGLRasterizer::EndFrame()
|
||||
FlushDebugShapes();
|
||||
|
||||
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
||||
|
||||
glDisable(GL_MULTISAMPLE_ARB);
|
||||
|
||||
m_2DCanvas->EndFrame();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user