|
|
@ -36,9 +36,6 @@ bool CDriverGL3::renderLines(CMaterial& mat, uint32 firstIndex, uint32 nlines)
|
|
|
|
if ( !setupMaterial(mat) || _LastIB._Values == NULL )
|
|
|
|
if ( !setupMaterial(mat) || _LastIB._Values == NULL )
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if( !setupProgram( mat ) )
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
// render primitives.
|
|
|
|
// render primitives.
|
|
|
|
//==============================
|
|
|
|
//==============================
|
|
|
@ -88,9 +85,6 @@ bool CDriverGL3::renderTriangles(CMaterial& mat, uint32 firstIndex, uint32 ntris
|
|
|
|
if ( !setupMaterial(mat) || _LastIB._Values == NULL )
|
|
|
|
if ( !setupMaterial(mat) || _LastIB._Values == NULL )
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if( !setupProgram( mat ) )
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
|
|
|
|
|
|
|
|
// render primitives.
|
|
|
|
// render primitives.
|
|
|
@ -179,9 +173,6 @@ bool CDriverGL3::renderRawPoints(CMaterial& mat, uint32 startIndex, uint32 numPo
|
|
|
|
if ( !setupMaterial(mat) )
|
|
|
|
if ( !setupMaterial(mat) )
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if( !setupProgram( mat ) )
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
// render primitives.
|
|
|
|
// render primitives.
|
|
|
|
//==============================
|
|
|
|
//==============================
|
|
|
@ -222,9 +213,6 @@ bool CDriverGL3::renderRawLines(CMaterial& mat, uint32 startIndex, uint32 numLin
|
|
|
|
if ( !setupMaterial(mat) )
|
|
|
|
if ( !setupMaterial(mat) )
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if( !setupProgram( mat ) )
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
// render primitives.
|
|
|
|
// render primitives.
|
|
|
|
//==============================
|
|
|
|
//==============================
|
|
|
@ -265,9 +253,6 @@ bool CDriverGL3::renderRawTriangles(CMaterial& mat, uint32 startIndex, uint32 nu
|
|
|
|
if ( !setupMaterial(mat) )
|
|
|
|
if ( !setupMaterial(mat) )
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if( !setupProgram( mat ) )
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
// render primitives.
|
|
|
|
// render primitives.
|
|
|
|
//==============================
|
|
|
|
//==============================
|
|
|
@ -311,9 +296,6 @@ bool CDriverGL3::renderRawQuads(CMaterial& mat, uint32 startIndex, uint32 numQua
|
|
|
|
if ( !setupMaterial(mat) )
|
|
|
|
if ( !setupMaterial(mat) )
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if( !setupProgram( mat ) )
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
if (_CurrentVertexBufferHard && _CurrentVertexBufferHard->isInvalid()) return true;
|
|
|
|
|
|
|
|
|
|
|
|
const uint32 QUAD_BATCH_SIZE = 2048;
|
|
|
|
const uint32 QUAD_BATCH_SIZE = 2048;
|
|
|
|