bennetthardwick / rust-obs-plugins

A safe wrapper around the OBS API, useful for creating OBS sources, filters and effects.
GNU General Public License v2.0
187 stars 32 forks source link

Fix texture.{height, width} #12

Closed kmod-midori closed 3 years ago

kmod-midori commented 3 years ago

Turns out that I screwed up.

kmod-midori commented 3 years ago

It feels useless to wrap draw: it does not work outside the video_render callback even if you try to enter the context, while video_render automatically enters the context before calling the callback. The OBS codebase doesn't manually enter a context when calling gs_* functions inside that callback.

Maybe we should just document them.