MPVSharp icon indicating copy to clipboard operation
MPVSharp copied to clipboard

Allow setting method for GetProcAddress

Open fsobolev opened this issue 1 year ago • 0 comments

While creating Avalonia example, SetupGL was causing problems, but copy-pasting the code only changing it to use Avalonia's gl.GetProcAddress made things work. I will add GetProcAddressFn to RenderContext to allow setting the method before calling SetupGL.

EDIT: ~~Huh, don't know what I was doing wrong before, but I made it work in Avalonia without setting GetProcAddressFn. Anyway, can be useful for some edge cases I think (GLXGetProcAddress?).~~ Actually it's needed on Windows

fsobolev avatar Sep 29 '23 09:09 fsobolev