mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
removed global VAO from gl-cocoa
This commit is contained in:
parent
e778a4c04f
commit
41bef32962
@ -32,7 +32,6 @@ struct gl_windowinfo {
|
||||
|
||||
struct gl_platform {
|
||||
NSOpenGLContext *context;
|
||||
GLuint vao;
|
||||
struct gs_swap_chain swap;
|
||||
};
|
||||
|
||||
@ -164,9 +163,6 @@ struct gl_platform *gl_platform_create(device_t device,
|
||||
if(!gl_init_extensions(device))
|
||||
goto fail;
|
||||
|
||||
gl_gen_vertex_arrays(1, &plat->vao);
|
||||
gl_bind_vertex_array(plat->vao);
|
||||
|
||||
if (GLEW_ARB_seamless_cube_map) {
|
||||
glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS);
|
||||
gl_success("GL_TEXTURE_CUBE_MAP_SEAMLESS");
|
||||
@ -192,7 +188,6 @@ void gl_platform_destroy(struct gl_platform *platform)
|
||||
if(!platform)
|
||||
return;
|
||||
|
||||
gl_delete_vertex_arrays(1, &platform->vao);
|
||||
[platform->context release];
|
||||
platform->context = nil;
|
||||
gl_windowinfo_destroy(platform->swap.wi);
|
||||
@ -228,7 +223,6 @@ void gl_windowinfo_destroy(struct gl_windowinfo *wi)
|
||||
void device_entercontext(device_t device)
|
||||
{
|
||||
[device->plat->context makeCurrentContext];
|
||||
//gl_bind_vertex_array(device->plat->vao);
|
||||
}
|
||||
|
||||
void device_leavecontext(device_t device)
|
||||
|
Loading…
Reference in New Issue
Block a user