forked from bartvdbraak/blender
Use const for SetProjectionMatrix
Remove warning printf.
This commit is contained in:
parent
2144f20b04
commit
512c269a16
@ -1067,7 +1067,7 @@ void RAS_OpenGLRasterizer::SetProjectionMatrix(MT_CmMatrix4x4 &mat)
|
||||
}
|
||||
|
||||
|
||||
void RAS_OpenGLRasterizer::SetProjectionMatrix(MT_Matrix4x4 & mat)
|
||||
void RAS_OpenGLRasterizer::SetProjectionMatrix(const MT_Matrix4x4 & mat)
|
||||
{
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
double matrix[16];
|
||||
|
@ -152,7 +152,7 @@ public:
|
||||
);
|
||||
|
||||
virtual void SetProjectionMatrix(MT_CmMatrix4x4 & mat);
|
||||
virtual void SetProjectionMatrix(MT_Matrix4x4 & mat);
|
||||
virtual void SetProjectionMatrix(const MT_Matrix4x4 & mat);
|
||||
virtual void SetViewMatrix(
|
||||
const MT_Matrix4x4 & mat,
|
||||
const MT_Vector3& campos,
|
||||
|
@ -184,15 +184,6 @@ void RAS_VAOpenGLRasterizer::IndexPrimitives( const vecVertexArray& vertexarrays
|
||||
}
|
||||
// use glDrawElements to draw each vertexarray
|
||||
static bool doWarning = true;
|
||||
if (vertexarrays.size() > 1 && doWarning)
|
||||
{
|
||||
/* TODO: if vertexarrays.size() == 1 then if we are multitexturing
|
||||
we can glLockArraysEXT the vertex arrays - GL will be able to cache
|
||||
the vertex transforms. */
|
||||
std::cout << "# vertex arrays: " << vertexarrays.size() << std::endl;
|
||||
std::cout << "I wondered if this could happen: please inform the proper authorities." << std::endl;
|
||||
doWarning = false;
|
||||
}
|
||||
|
||||
for (vt=0;vt<vertexarrays.size();vt++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user