Commit f94c28b5 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed unitialized variables and minor cleanup

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13742 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 87d1d0db
......@@ -98,14 +98,14 @@ int GLState::maxDrawBuffers_ = 0;
int GLState::num_texture_units_ = 0;
GLStateContext::GLStateContext()
GLStateContext::GLStateContext() :
activeTexture_(GL_TEXTURE0),
drawBufferSingle_(GL_BACK),
activeDrawBuffer_(0),
program_(0)
{
activeTexture_ = GL_TEXTURE0;
activeDrawBuffer_ = 0;
framebuffers_[0] = framebuffers_[1] = 0;
memset(drawBufferState_, GL_BACK, sizeof(drawBufferState_));
drawBufferSingle_ = GL_BACK;
program_ = 0;
}
GLState::GLState(bool _updateGL)
......
......@@ -168,7 +168,12 @@ static DrawMode firstFreeID_;
DrawModeProperties::DrawModeProperties() {
DrawModeProperties::DrawModeProperties():
lighting_(true),
points_(false),
lines_(false),
triangles_(true)
{
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment