1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-29 15:00:27 +00:00
mpv/DOCS
wm4 b7ba2e2c57 DOCS/client_api_examples/qt_opengl: fix uninit
mpv_opengl_cb_uninit_gl() still needs the OpenGL context. It makes calls
to free OpenGL objects. Strictly speaking, this is probably unnecessary,
because the OpenGL context is destroyed afterwards (implicitly freeing
all related objects). But mpv_opengl_cb_uninit_gl() does not require the
destruction of the OpenGL context, and thus has to free resources
manually.

It's also true that OpenGL normally simply ignores API calls (or returns
errors) if no context is set, but doing it properly is cleaner.

That makeCurrent() can be called in the destructor is explicitly allowed
and recommended for freeing GL resources in the Qt docs.

This fixes a mpv error message on exit.
2015-10-11 14:11:12 +02:00
..
client_api_examples DOCS/client_api_examples/qt_opengl: fix uninit 2015-10-11 14:11:12 +02:00
man ytdl: Remove DASH hacks, use DASH by default 2015-10-11 00:35:35 +02:00
client-api-changes.rst client API: rename GL_MP_D3D_interfaces 2015-09-24 21:07:37 +02:00
compile-windows.md DOCS/compile-windows.md: fix Lua package 2015-06-18 18:41:09 +02:00
contribute.md Require contributions in LGPLv2.1+ 2015-07-24 23:54:51 +02:00
edl-mpv.rst Drop libquvi support 2014-10-25 20:18:22 +02:00
encoding.rst manpage: update config file locations 2014-06-28 15:55:09 +02:00
interface-changes.rst audio: add option for falling back to ao_null 2015-10-05 19:12:23 +02:00
mplayer-changes.rst Disable DVD and BD menu support (to be removed) 2015-06-26 23:37:30 +02:00
release-policy.md DOCS: update release policy 2015-09-23 01:07:52 +02:00
tech-overview.txt options: remove --leak-report 2015-05-02 19:03:28 +02:00
waf-buildsystem.rst Various spelling fixes 2015-06-18 19:36:58 +02:00