Fix for error spam in console when running on GL14 device
parent
32d1994c98
commit
df4e5fa309
|
@ -436,7 +436,10 @@ void CGLDevice::BeginScene()
|
||||||
void CGLDevice::EndScene()
|
void CGLDevice::EndScene()
|
||||||
{
|
{
|
||||||
#ifdef DEV_BUILD
|
#ifdef DEV_BUILD
|
||||||
CheckGLErrors();
|
int count = ClearGLErrors();
|
||||||
|
|
||||||
|
if (count > 0)
|
||||||
|
GetLogger()->Debug("OpenGL errors detected: %d\n", count);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1766,8 +1769,6 @@ void CGLDevice::DrawStaticBuffer(unsigned int bufferId)
|
||||||
if (it == m_vboObjects.end())
|
if (it == m_vboObjects.end())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
glEnable(GL_VERTEX_ARRAY);
|
|
||||||
|
|
||||||
if(m_vertexBufferType == VBT_VBO_CORE)
|
if(m_vertexBufferType == VBT_VBO_CORE)
|
||||||
glBindBuffer(GL_ARRAY_BUFFER, (*it).second.bufferId);
|
glBindBuffer(GL_ARRAY_BUFFER, (*it).second.bufferId);
|
||||||
else
|
else
|
||||||
|
@ -1838,8 +1839,6 @@ void CGLDevice::DrawStaticBuffer(unsigned int bufferId)
|
||||||
glBindBuffer(GL_ARRAY_BUFFER, 0);
|
glBindBuffer(GL_ARRAY_BUFFER, 0);
|
||||||
else
|
else
|
||||||
glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
|
glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
|
||||||
|
|
||||||
glDisable(GL_VERTEX_ARRAY);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue