diff options
author | wm4 <wm4@nowhere> | 2013-03-02 17:08:05 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-03 15:36:56 +0100 |
commit | 9efe32120b4d5aaa88eccf4767fa7d7c5c700fd1 (patch) | |
tree | 2be16d7b556409a1ad5e680b2dc6b73ba2b3d868 /video/out/vo_opengl.c | |
parent | ba35335939c46a1ed53584c2b850c7deecbf837a (diff) | |
download | mpv-9efe32120b4d5aaa88eccf4767fa7d7c5c700fd1.tar.bz2 mpv-9efe32120b4d5aaa88eccf4767fa7d7c5c700fd1.tar.xz |
vo_opengl: don't destroy VOFLAG_HIDDEN window
This was done so because the X11 code had a hard to track down issue
with some window managers, and caused the VO window to be placed
incorrectly. This was fixed in the previous commit. Consequently, we can
remove this bad hack.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index baaad18381..98406ecad4 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -2181,12 +2181,6 @@ static int preinit(struct vo *vo, const char *arg) if (!config_window(p, 320, 200, VOFLAG_HIDDEN)) goto err_out; check_gl_features(p); - // We created a window to test whether the GL context could be - // created and so on. Destroy that window to make sure all state - // associated with it is lost. - uninit_gl(p); - if (!mpgl_destroy_window(p->glctx)) - goto err_out; return 0; |