togles: create pseudo buffer for mali gpu's
This commit is contained in:
parent
54dc82a1c2
commit
5a307aac59
1 changed files with 7 additions and 4 deletions
|
@ -100,9 +100,6 @@ void CPersistentBuffer::Init( EGLMBufferType type,uint nSize )
|
|||
m_nOffset = 0;
|
||||
m_type = type;
|
||||
|
||||
if( strcmp(gGL->glGetString(GL_RENDERER), "ARM") == 0 )
|
||||
g_bUsePseudoBufs = true; // works faster with Mali gpu
|
||||
|
||||
switch ( type )
|
||||
{
|
||||
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;
|
||||
#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
|
||||
m_BufferSpanManager.Init( m_pCtx, m_type, 512, m_nSize, m_bDynamic );
|
||||
|
||||
|
|
Loading…
Reference in a new issue