forked from bartvdbraak/blender
BGE player was using un-initialized variables for initializing the canvas color.
This commit is contained in:
parent
561b6e34f0
commit
737ca9ad5f
@ -124,16 +124,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;
|
||||
|
Loading…
Reference in New Issue
Block a user