mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-09 13:10:37 +00:00
Fixed X11GLContext.MakeCurrent. X11GLControl was not setting the handle correctly.
This commit is contained in:
parent
f98b344cdf
commit
9cd1ca9a67
|
@ -17,6 +17,7 @@ namespace OpenTK.Platform.X11
|
||||||
|
|
||||||
internal WindowInfo(WindowInfo parent)
|
internal WindowInfo(WindowInfo parent)
|
||||||
{
|
{
|
||||||
|
this.Handle = parent.Handle;
|
||||||
this.TopLevelWindow = parent.TopLevelWindow;
|
this.TopLevelWindow = parent.TopLevelWindow;
|
||||||
this.Screen = parent.Screen;
|
this.Screen = parent.Screen;
|
||||||
this.Display = parent.Display;
|
this.Display = parent.Display;
|
||||||
|
|
|
@ -69,10 +69,11 @@ namespace OpenTK.Platform.X11
|
||||||
{
|
{
|
||||||
Debug.Write(
|
Debug.Write(
|
||||||
String.Format(
|
String.Format(
|
||||||
"Making context {0} current on thread {1} (display: {2}, window: {3})... ",
|
"Making context {0} current on thread {1} (Display: {2}, Screen: {3}, Window: {4})... ",
|
||||||
x11context,
|
x11context,
|
||||||
System.Threading.Thread.CurrentThread.ManagedThreadId,
|
System.Threading.Thread.CurrentThread.ManagedThreadId,
|
||||||
windowInfo.Display,
|
windowInfo.Display,
|
||||||
|
windowInfo.Screen,
|
||||||
windowInfo.Handle
|
windowInfo.Handle
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -67,7 +67,7 @@ namespace OpenTK.Platform.X11
|
||||||
System.Reflection.BindingFlags.NonPublic).GetValue(null);
|
System.Reflection.BindingFlags.NonPublic).GetValue(null);
|
||||||
|
|
||||||
Debug.Print(
|
Debug.Print(
|
||||||
"Screen: {0}, Display: {1}, Root Window: {2}, Control: {3}",
|
"Screen: {0}, Display: {1}, Root Window: {2}, Handle: {3}",
|
||||||
info.Screen, info.Display, info.RootWindow, info.Handle);
|
info.Screen, info.Display, info.RootWindow, info.Handle);
|
||||||
|
|
||||||
glContext = new X11GLContext(info, mode);
|
glContext = new X11GLContext(info, mode);
|
||||||
|
|
Loading…
Reference in a new issue