* Move SDL library version check to sys_main.c as it's proving difficult to
make the Makefile check sufficiently portable * Remove unnecessary GL PFN... casts from SDL_GL_GetProcAddress calls * Replace OS X uname workaround with Solaris workaround, as I believe OS X uname now behaves the same as GNU name
This commit is contained in:
parent
3f3e1a51a1
commit
6bd4bb16a0
3 changed files with 18 additions and 30 deletions
|
@ -396,9 +396,9 @@ static void GLimp_InitExtensions( void )
|
|||
{
|
||||
if ( r_ext_multitexture->value )
|
||||
{
|
||||
qglMultiTexCoord2fARB = ( PFNGLMULTITEXCOORD2FARBPROC ) SDL_GL_GetProcAddress( "glMultiTexCoord2fARB" );
|
||||
qglActiveTextureARB = ( PFNGLACTIVETEXTUREARBPROC ) SDL_GL_GetProcAddress( "glActiveTextureARB" );
|
||||
qglClientActiveTextureARB = ( PFNGLCLIENTACTIVETEXTUREARBPROC ) SDL_GL_GetProcAddress( "glClientActiveTextureARB" );
|
||||
qglMultiTexCoord2fARB = SDL_GL_GetProcAddress( "glMultiTexCoord2fARB" );
|
||||
qglActiveTextureARB = SDL_GL_GetProcAddress( "glActiveTextureARB" );
|
||||
qglClientActiveTextureARB = SDL_GL_GetProcAddress( "glClientActiveTextureARB" );
|
||||
|
||||
if ( qglActiveTextureARB )
|
||||
{
|
||||
|
|
|
@ -587,6 +587,14 @@ int main( int argc, char **argv )
|
|||
char commandLine[ MAX_STRING_CHARS ] = { 0 };
|
||||
|
||||
#ifndef DEDICATED
|
||||
// SDL version check
|
||||
|
||||
// Compile time
|
||||
# if !SDL_VERSION_ATLEAST(MINSDL_MAJOR,MINSDL_MINOR,MINSDL_PATCH)
|
||||
# error A more recent version of SDL is required
|
||||
# endif
|
||||
|
||||
// Run time
|
||||
const SDL_version *ver = SDL_Linked_Version( );
|
||||
|
||||
#define STRING(s) #s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue