Browse Source

togles: create pseudo buffer for mali gpu's

sanitize
nillerusr 2 years ago
parent
commit
58873c35c7
  1. 9
      togles/linuxwin/cglmbuffer.cpp

9
togles/linuxwin/cglmbuffer.cpp

@ -100,9 +100,6 @@ void CPersistentBuffer::Init( EGLMBufferType type,uint nSize ) @@ -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 @@ -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…
Cancel
Save