Hello Graham,
thanks for your reply.
If I use this flags the context are created but nothing is drawn.. my
code is :
int attribList[] =
{
WGL_CONTEXT_MAJOR_VERSION_ARB, 1,
WGL_CONTEXT_MINOR_VERSION_ARB, 0,
WGL_CONTEXT_FLAGS_ARB,
0
};
HGLRC supported = NULL;
PFNWGLCREATECONTEXTATTRIBSARBPROC wglGetContext =
(PFNWGLCREATECONTEXTATTRIBSARBPROC)
wglGetProcAddress("wglCreateContextAttribsARB");
if (wglGetContext)
supported = ((HGLRC(__stdcall)(HDC,HGLRC, const int
attribList))wglGetContext)(DC, 0, attribList);
if (!wglGetContext) {
strcpy(message,"wglMakeCurrent() failed for OpenGL 1.1
context.");
MessageBox(this->Handle,message,"ATTENZIONE",
MB_ICONERROR | MB_APPLMODAL);
return(0);
}
if (!(GLDC = wglGetContext(DC, 0, attribList))) {
strcpy(message,"wglCreateContextAttribsARB() failed for
OpenGL 1.1 context.");
MessageBox(this->Handle,message,"ATTENZIONE", MB_ICONERROR
| MB_APPLMODAL);
return(0);
}
........ and also in ATI Radeon graphics card works with old driver...
except when I try to activate the HiddenLine : then application crash in
atioglxx.dll ( I suppose glPolygonOffset is the problem ).
With the latest version of driver application don't send error message
but don't work ( black screen )
Il 19/03/2014 03.18, gsellers ha scritto:
>
AMD Developer Forums <http://devgurus.amd.com/?et=watches.email.thread>
>
WGL_ARB_create_context
in /Graphics Programming/