mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl-wnd: ooups
git-svn-id: http://pcsx2.googlecode.com/svn/branches/gsdx-ogl-wnd@5521 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
36f8dda3fe
commit
e6e18607e0
|
@ -39,7 +39,7 @@ bool GSWndWGL::CreateContext(int major, int minor)
|
||||||
|
|
||||||
// GL2 context are quite easy but we need GL3 which is another painful story...
|
// GL2 context are quite easy but we need GL3 which is another painful story...
|
||||||
if (!(m_context = wglCreateContext(m_NativeDisplay))) {
|
if (!(m_context = wglCreateContext(m_NativeDisplay))) {
|
||||||
fprinf(stderr, "Failed to create a 2.0 context\n");
|
fprintf(stderr, "Failed to create a 2.0 context\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,13 +63,13 @@ bool GSWndWGL::CreateContext(int major, int minor)
|
||||||
|
|
||||||
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)wglGetProcAddress("wglCreateContextAttribsARB");
|
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)wglGetProcAddress("wglCreateContextAttribsARB");
|
||||||
if (!wglCreateContextAttribsARB) {
|
if (!wglCreateContextAttribsARB) {
|
||||||
fprinf(stderr, "Failed to init wglCreateContextAttribsARB function pointer\n");
|
fprintf(stderr, "Failed to init wglCreateContextAttribsARB function pointer\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
HGLRC context30 = wglCreateContextAttribsARB(m_NativeDisplay, NULL, context_attribs);
|
HGLRC context30 = wglCreateContextAttribsARB(m_NativeDisplay, NULL, context_attribs);
|
||||||
if (!context30) {
|
if (!context30) {
|
||||||
fprinf(stderr, "Failed to create a 3.x context\n");
|
fprintf(stderr, "Failed to create a 3.x context\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue