pwglCreateContextAttribsARB not implemented
glebov21 opened this issue · comments
Hello. I was try to create context:
// Make temporary context
MakeTempContext();
int[] attribs = new int[]
{
Wgl.CONTEXT_MAJOR_VERSION_ARB, 4,
Wgl.CONTEXT_MINOR_VERSION_ARB, 3,
0
};
// Make actual context
// We need to make our temporary one first because OpenGL is weird and
// doesn't let you call this unless you are in an active context already
IntPtr other = Wgl.CreateContextAttribsARB(hdc, IntPtr.Zero, attribs);
but it show me: pwglCreateContextAttribsARB not implemented
OpenGL.Net\OpenGL.Net\ARB\Wgl.ARB_create_context.cs: 109
I was check by AIDA64:
WGL_ARB_create_context: enabled
OpenGL version: 4.3.0
Full source code: https://answers.unity.com/questions/1204687/how-can-i-use-unityshadercompilerexe.html
Function pointers for all interfaces are loaded dynamically. Call Wgl.BindAPI
(
Line 94 in 540aacd
If you aim to have a device context, just use DeviceContext, which is platform independent (https://github.com/luca-piccioni/OpenGL.Net/wiki/GL-%5C-Device-Context-and-GL-Context). Temporary context is created at Gl.Initialize (https://github.com/luca-piccioni/OpenGL.Net/wiki/GL-%5C-Initialization)