aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx/Ui/OpenToolkitBindingsContext.cs
blob: 49dd5da8e27e3702dc3b509af5307b76a1e0f5ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using SPB.Graphics;
using System;

namespace Ryujinx.Ui
{
    public class OpenToolkitBindingsContext : OpenTK.IBindingsContext
    {
        private readonly IBindingsContext _bindingContext;

        public OpenToolkitBindingsContext(IBindingsContext bindingsContext)
        {
            _bindingContext = bindingsContext;
        }

        public IntPtr GetProcAddress(string procName)
        {
            return _bindingContext.GetProcAddress(procName);
        }
    }
}