code cleanup: warnings
This commit is contained in:
@@ -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);
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user