|
|
@ -100,9 +100,6 @@ void CPersistentBuffer::Init( EGLMBufferType type,uint nSize ) |
|
|
|
m_nOffset = 0; |
|
|
|
m_nOffset = 0; |
|
|
|
m_type = type; |
|
|
|
m_type = type; |
|
|
|
|
|
|
|
|
|
|
|
if( strcmp(gGL->glGetString(GL_RENDERER), "ARM") == 0 ) |
|
|
|
|
|
|
|
g_bUsePseudoBufs = true; // works faster with Mali gpu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch ( type ) |
|
|
|
switch ( type ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case kGLMVertexBuffer: m_buffGLTarget = GL_ARRAY_BUFFER; break; |
|
|
|
case kGLMVertexBuffer: m_buffGLTarget = GL_ARRAY_BUFFER; break; |
|
|
@ -475,6 +472,12 @@ CGLMBuffer::CGLMBuffer( GLMContext *pCtx, EGLMBufferType type, uint size, uint o |
|
|
|
m_bPseudo = true; |
|
|
|
m_bPseudo = true; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const char *szRenderer = gGL->glGetString(GL_VENDOR); |
|
|
|
|
|
|
|
// Msg("GL_VENDOR: %s\n", szRenderer);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( strcmp(szRenderer, "ARM") == 0 ) |
|
|
|
|
|
|
|
g_bUsePseudoBufs = true; // works faster with Mali gpu
|
|
|
|
|
|
|
|
|
|
|
|
#if GL_ENABLE_INDEX_VERIFICATION |
|
|
|
#if GL_ENABLE_INDEX_VERIFICATION |
|
|
|
m_BufferSpanManager.Init( m_pCtx, m_type, 512, m_nSize, m_bDynamic ); |
|
|
|
m_BufferSpanManager.Init( m_pCtx, m_type, 512, m_nSize, m_bDynamic ); |
|
|
|
|
|
|
|
|
|
|
|