You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Editor/EditorWindow.cs
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -64,13 +64,6 @@ public EditorWindow(double fps, int width, int height, IFileProvider fileProvide
64
64
};
65
65
}
66
66
67
-
protectedoverridevoidOnLoad()
68
-
{
69
-
base.OnLoad();
70
-
71
-
OnFramebufferResize(newFramebufferResizeEventArgs(ClientSize));// we initialize a bunch of stuff to 1x1 by default until we know the true size of the framebuffer
72
-
}
73
-
74
67
privatevoidDoLoad()
75
68
{
76
69
GL.Enable(EnableCap.DepthTest);
@@ -91,6 +84,8 @@ private void DoLoad()
91
84
92
85
CenterWindow();
93
86
IsVisible=true;
87
+
88
+
OnFramebufferResize(newFramebufferResizeEventArgs(ClientSize));// we initialize a bunch of stuff to 1x1 by default until we know the true size of the framebuffer
0 commit comments