I have a very strange problem with my C # OpenTK splash screen. When I compile a program and run it before changing the extension as an EXE file, it works correctly. But when I change the extension to SCR and run it, it crashes due to a System.EntryPointNotFound exception (in this case, the glCreateProgram function). In the debugger, I checked this at startup:
as an EXE file: GL.GetString (StringName.Vendor) β "Intel" GL.GetString (StringName.Version) β "2.1.0 - Build 8.15.10.2622"
as a SCR file: GL.GetString (StringName.Vendor) β "Microsoft" GL.GetString (StringName.Version) β "1.1.0"
In my application, I use the parameterless constructor of the GameWindow class to create an OpenGL context. For a little experiment, I changed the extension to BAT and it works fine. I have no idea why my OpenGL context depends on the file extension, I assume that the screensavers are executed by the system on some kind of overlay, but I really could not find a solution to this problem.
Any ideas?
source share