FlushGLErrors before AssertNoGLError
This commit is contained in:
@@ -982,6 +982,8 @@ void RageCompiledGeometryHWOGL::AllocateBuffers()
|
|||||||
|
|
||||||
void RageCompiledGeometryHWOGL::UploadData()
|
void RageCompiledGeometryHWOGL::UploadData()
|
||||||
{
|
{
|
||||||
|
FlushGLErrors();
|
||||||
|
|
||||||
GLExt.glBindBufferARB( GL_ARRAY_BUFFER_ARB, m_nPositions );
|
GLExt.glBindBufferARB( GL_ARRAY_BUFFER_ARB, m_nPositions );
|
||||||
AssertNoGLError();
|
AssertNoGLError();
|
||||||
GLExt.glBufferDataARB(
|
GLExt.glBufferDataARB(
|
||||||
@@ -1046,6 +1048,8 @@ void RageCompiledGeometryHWOGL::Invalidate()
|
|||||||
|
|
||||||
void RageCompiledGeometryHWOGL::Allocate( const vector<msMesh> &vMeshes )
|
void RageCompiledGeometryHWOGL::Allocate( const vector<msMesh> &vMeshes )
|
||||||
{
|
{
|
||||||
|
FlushGLErrors();
|
||||||
|
|
||||||
RageCompiledGeometrySWOGL::Allocate( vMeshes );
|
RageCompiledGeometrySWOGL::Allocate( vMeshes );
|
||||||
GLExt.glBindBufferARB( GL_ARRAY_BUFFER_ARB, m_nPositions );
|
GLExt.glBindBufferARB( GL_ARRAY_BUFFER_ARB, m_nPositions );
|
||||||
AssertNoGLError();
|
AssertNoGLError();
|
||||||
|
|||||||
Reference in New Issue
Block a user