Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/ObjectViewer/System/GameWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal class ObjectViewer : GameWindow
{
//Deliberately specify the default constructor with various overrides
public ObjectViewer(int width, int height, GraphicsMode currentGraphicsMode, string windowTitle,
GameWindowFlags @default) : base(width, height, currentGraphicsMode, windowTitle, @default)
GameWindowFlags @default) : base(width, height, currentGraphicsMode, windowTitle, @default, DisplayDevice.Default, 4, 1, GraphicsContextFlags.ForwardCompatible)
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion source/OpenBVE/System/GameWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public OpenBVEGame(int width, int height, GraphicsMode currentGraphicsMode, Game
}
}

public OpenBVEGame(int width, int height, GraphicsMode currentGraphicsMode, GameWindowFlags @default, GraphicsContextFlags flags): base(width, height, currentGraphicsMode, Translations.GetInterfaceString(HostApplication.OpenBve, new[] {"program","title"}), @default, DisplayDevice.Default, 3,3, flags)
public OpenBVEGame(int width, int height, GraphicsMode currentGraphicsMode, GameWindowFlags @default, GraphicsContextFlags flags): base(width, height, currentGraphicsMode, Translations.GetInterfaceString(HostApplication.OpenBve, new[] {"program","title"}), @default, DisplayDevice.Default, 4,1, flags)
{
Program.FileSystem.AppendToLogFile("Creating game window with forwards-compatible context.");
if (Program.CurrentHost.Platform == HostPlatform.AppleOSX && IntPtr.Size != 4)
Expand Down
2 changes: 1 addition & 1 deletion source/RouteViewer/System/Gamewindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace RouteViewer
internal class RouteViewer : GameWindow
{
//Deliberately specify the default constructor with various overrides
public RouteViewer(int width, int height, GraphicsMode currentGraphicsMode, string windowTitle, GameWindowFlags @default): base (width, height, currentGraphicsMode, windowTitle, @default)
public RouteViewer(int width, int height, GraphicsMode currentGraphicsMode, string windowTitle, GameWindowFlags @default): base (width, height, currentGraphicsMode, windowTitle, @default, DisplayDevice.Default, 4, 1, GraphicsContextFlags.ForwardCompatible)
{
try
{
Expand Down