Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - graphnode

Pages: [1]
1
DotNet / Re: OpenTK AccessViolationException on any OpenGL call
« on: August 20, 2015, 05:15:52 am »
It throws a key not found. I'm currently debugging OpenTK code and it seems it was waiting for a context pointer not a window pointer.

I'm now looking on why
GraphicsContext context = new GraphicsContext(new ContextHandle(IntPtr.Zero), null);
doesn't work. It should, it seems to find the context correctly when IntPtr.Zero is passed but crashes with access violation.

2
DotNet / Re: OpenTK AccessViolationException on any OpenGL call
« on: August 20, 2015, 01:24:10 am »
I'm also getting access violation on the examples that use OpenTK. Weirdly not on a couple of computers.

I tried to fix using
GraphicsMode graphicsMode = new GraphicsMode(32, (int)contextSettings.DepthBits, (int)contextSettings.StencilBits, (int)contextSettings.AntialiasingLevel);
IWindowInfo windowInfo = Utilities.CreateWindowsWindowInfo(window.SystemHandle);
GraphicsContext context = new GraphicsContext(graphicsMode, windowInfo);
context.LoadAll();

which makes it work on all computers but loses the cross-platform feature because of the
Utilities.CreateWindowsWindowInfo()
call.

No idea what I should do next besides making a code path for each OS.

Pages: [1]