ref: gl: psvita: remove the GL_CheckExtension hack
This commit is contained in:
parent
aa4e2f0ae4
commit
9150bbdfd8
1 changed files with 2 additions and 2 deletions
|
@ -371,10 +371,8 @@ qboolean GL_CheckExtension( const char *name, const dllfunc_t *funcs, const char
|
||||||
// functions are cleared before all the extensions are evaluated
|
// functions are cleared before all the extensions are evaluated
|
||||||
if((*func->func = (void *)gEngfuncs.GL_GetProcAddress( func->name )) == NULL )
|
if((*func->func = (void *)gEngfuncs.GL_GetProcAddress( func->name )) == NULL )
|
||||||
{
|
{
|
||||||
#if !XASH_PSVITA // on the vita some exts are implemented partially but that's still enough
|
|
||||||
// one or more functions are invalid, extension will be disabled
|
// one or more functions are invalid, extension will be disabled
|
||||||
GL_SetExtension( r_ext, false );
|
GL_SetExtension( r_ext, false );
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -753,6 +751,8 @@ void GL_InitExtensionsBigGL( void )
|
||||||
GL_CheckExtension( "GL_ARB_debug_output", debugoutputfuncs, "gl_debug_output", GL_DEBUG_OUTPUT );
|
GL_CheckExtension( "GL_ARB_debug_output", debugoutputfuncs, "gl_debug_output", GL_DEBUG_OUTPUT );
|
||||||
|
|
||||||
#if XASH_PSVITA
|
#if XASH_PSVITA
|
||||||
|
// not all GL1.1 functions are implemented in vitaGL, but there's enough
|
||||||
|
GL_SetExtension( GL_OPENGL_110, true );
|
||||||
// NPOT textures are actually supported, but the extension is not listed in GL_EXTENSIONS
|
// NPOT textures are actually supported, but the extension is not listed in GL_EXTENSIONS
|
||||||
GL_SetExtension( GL_ARB_TEXTURE_NPOT_EXT, true );
|
GL_SetExtension( GL_ARB_TEXTURE_NPOT_EXT, true );
|
||||||
// init our immediate mode override
|
// init our immediate mode override
|
||||||
|
|
Loading…
Add table
Reference in a new issue