code cleanup: warnings

This commit is contained in:
Campbell Barton
2012-12-19 01:48:54 +00:00
parent 2349370a51
commit 0ddc77f913
10 changed files with 15 additions and 17 deletions

View File

@@ -119,7 +119,7 @@ RAS_OpenGLRasterizer::RAS_OpenGLRasterizer(RAS_ICanvas* canvas, int storage)
m_failsafe_storage = new RAS_StorageIM(&m_texco_num, m_texco, &m_attrib_num, m_attrib);
m_storage_type = RAS_VBO;
}
else if (m_storage_type == RAS_VA || m_storage_type == RAS_AUTO_STORAGE && GLEW_VERSION_1_1)
else if ((m_storage_type == RAS_VA) || (m_storage_type == RAS_AUTO_STORAGE && GLEW_VERSION_1_1))
{
m_storage = new RAS_StorageVA(&m_texco_num, m_texco, &m_attrib_num, m_attrib);
m_failsafe_storage = new RAS_StorageIM(&m_texco_num, m_texco, &m_attrib_num, m_attrib);

View File

@@ -41,8 +41,8 @@ extern "C"{
RAS_StorageIM::RAS_StorageIM(int *texco_num, RAS_IRasterizer::TexCoGen *texco, int *attrib_num, RAS_IRasterizer::TexCoGen *attrib) :
m_texco_num(texco_num),
m_texco(texco),
m_attrib_num(attrib_num),
m_texco(texco),
m_attrib(attrib)
{
}

View File

@@ -31,11 +31,11 @@
RAS_StorageVA::RAS_StorageVA(int *texco_num, RAS_IRasterizer::TexCoGen *texco, int *attrib_num, RAS_IRasterizer::TexCoGen *attrib) :
m_texco_num(texco_num),
m_texco(texco),
m_attrib_num(attrib_num),
m_attrib(attrib),
m_last_texco_num(0),
m_last_attrib_num(0)
m_last_attrib_num(0),
m_texco(texco),
m_attrib(attrib)
{
}

View File

@@ -206,8 +206,8 @@ void VBO::Draw(int texco_num, RAS_IRasterizer::TexCoGen* texco, int attrib_num,
RAS_StorageVBO::RAS_StorageVBO(int *texco_num, RAS_IRasterizer::TexCoGen *texco, int *attrib_num, RAS_IRasterizer::TexCoGen *attrib):
m_texco_num(texco_num),
m_texco(texco),
m_attrib_num(attrib_num),
m_texco(texco),
m_attrib(attrib)
{
}