don't init audio in context.c
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user