don't init audio in context.c
This commit is contained in:
+2
-2
@@ -10,7 +10,7 @@ static int s_windowHeight;
|
|||||||
|
|
||||||
void context_init( const char *title, int width, int height, int major, int minor )
|
void context_init( const char *title, int width, int height, int major, int minor )
|
||||||
{
|
{
|
||||||
if( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO ) < 0 ) goto err;
|
if( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_JOYSTICK ) < 0 ) goto err;
|
||||||
|
|
||||||
int profile = (major < 3) ? SDL_GL_CONTEXT_PROFILE_COMPATIBILITY : SDL_GL_CONTEXT_PROFILE_CORE;
|
int profile = (major < 3) ? SDL_GL_CONTEXT_PROFILE_COMPATIBILITY : SDL_GL_CONTEXT_PROFILE_CORE;
|
||||||
|
|
||||||
@@ -111,4 +111,4 @@ void context_terminate( void )
|
|||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
|
||||||
s_sdlWindow = NULL;
|
s_sdlWindow = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user