114 } else { |
114 } else { |
115 glewExperimental = GL_TRUE; |
115 glewExperimental = GL_TRUE; |
116 GLenum err = glewInit(); |
116 GLenum err = glewInit(); |
117 if (err == GLEW_OK) { |
117 if (err == GLEW_OK) { |
118 SDL_GL_SetSwapInterval(settings->vsync); |
118 SDL_GL_SetSwapInterval(settings->vsync); |
119 glEnable(GL_DEPTH_TEST); |
|
120 glEnable(GL_BLEND); |
|
121 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
|
122 glEnable(GL_DEBUG_OUTPUT); |
119 glEnable(GL_DEBUG_OUTPUT); |
123 glDebugMessageCallback(asc_gl_debug_callback, NULL); |
120 glDebugMessageCallback(asc_gl_debug_callback, NULL); |
124 |
121 |
125 asc_dprintf("Window %u initialized", window->id); |
122 asc_dprintf("Window %u initialized", window->id); |
126 if (asc_primitives_init(&window->primitives)) { |
123 if (asc_primitives_init(&window->primitives)) { |