mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 09:49:36 +00:00
Replace glBegin/glEnd
This commit is contained in:
@@ -891,9 +891,6 @@ CGLMTex::CGLMTex( GLMContext *ctx, GLMTexLayout *layout, uint levels, const char
|
||||
{
|
||||
printf("\n minimizing storage for tex '%s' [%s] ", m_debugLabel?m_debugLabel:"-", m_layout->m_layoutSummary );
|
||||
}
|
||||
|
||||
if (gGL->m_bHave_GL_APPLE_texture_range)
|
||||
gGL->glTexParameteri( m_layout->m_key.m_texGLTarget, GL_TEXTURE_MINIMIZE_STORAGE_APPLE, 1 );
|
||||
}
|
||||
|
||||
// after a lot of pain with texture completeness...
|
||||
@@ -1359,10 +1356,6 @@ void CGLMTex::WriteTexels( GLMTexLockDesc *desc, bool writeWholeSlice, bool noDa
|
||||
// set up the client storage now, one way or another
|
||||
// If this extension isn't supported, we just end up with two copies of the texture, one in the GL and one in app memory.
|
||||
// So it's safe to just go on as if this extension existed and hold the possibly-unnecessary extra RAM.
|
||||
if (gGL->m_bHave_GL_APPLE_client_storage)
|
||||
{
|
||||
gGL->glPixelStorei( GL_UNPACK_CLIENT_STORAGE_APPLE, m_texClientStorage );
|
||||
}
|
||||
|
||||
switch( target )
|
||||
{
|
||||
@@ -1509,11 +1502,6 @@ void CGLMTex::WriteTexels( GLMTexLockDesc *desc, bool writeWholeSlice, bool noDa
|
||||
break;
|
||||
}
|
||||
|
||||
if (gGL->m_bHave_GL_APPLE_client_storage)
|
||||
{
|
||||
gGL->glPixelStorei( GL_UNPACK_CLIENT_STORAGE_APPLE, GL_FALSE );
|
||||
}
|
||||
|
||||
if ( expandTemp )
|
||||
{
|
||||
free( expandTemp );
|
||||
|
||||
Reference in New Issue
Block a user