src/window.c

changeset 39
7cf310cc47cb
parent 37
8a8cc6725b48
child 41
df81d493716e
equal deleted inserted replaced
38:6e5629ea4c5c 39:7cf310cc47cb
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)) {

mercurial