win32 build fix
This commit is contained in:
parent
664bfe6fa3
commit
ca4753cf7c
|
@ -25,7 +25,11 @@
|
||||||
|
|
||||||
WGLGraphicsContext theGLContext;
|
WGLGraphicsContext theGLContext;
|
||||||
|
|
||||||
bool WGLContext::Init()
|
PFNWGLCHOOSEPIXELFORMATARBPROC wglChoosePixelFormatARB;
|
||||||
|
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB;
|
||||||
|
PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT;
|
||||||
|
|
||||||
|
bool WGLGraphicsContext::Init()
|
||||||
{
|
{
|
||||||
if (ourOpenGLRenderingContext != NULL)
|
if (ourOpenGLRenderingContext != NULL)
|
||||||
// Already initialized
|
// Already initialized
|
||||||
|
@ -111,7 +115,7 @@ bool WGLContext::Init()
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WGLContext::Swap()
|
void WGLGraphicsContext::Swap()
|
||||||
{
|
{
|
||||||
#ifdef TEST_AUTOMATION
|
#ifdef TEST_AUTOMATION
|
||||||
do_swap_automation();
|
do_swap_automation();
|
||||||
|
@ -119,7 +123,7 @@ void WGLContext::Swap()
|
||||||
wglSwapLayerBuffers(ourWindowHandleToDeviceContext, WGL_SWAP_MAIN_PLANE);
|
wglSwapLayerBuffers(ourWindowHandleToDeviceContext, WGL_SWAP_MAIN_PLANE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WGLContext::Term()
|
void WGLGraphicsContext::Term()
|
||||||
{
|
{
|
||||||
if (ourOpenGLRenderingContext != NULL)
|
if (ourOpenGLRenderingContext != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -52,10 +52,6 @@ typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAt
|
||||||
typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
|
typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
|
||||||
typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
|
typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
|
||||||
|
|
||||||
PFNWGLCHOOSEPIXELFORMATARBPROC wglChoosePixelFormatARB;
|
|
||||||
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB;
|
|
||||||
PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT;
|
|
||||||
|
|
||||||
|
|
||||||
class WGLGraphicsContext
|
class WGLGraphicsContext
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue