Fixed some gl errors.

This commit is contained in:
Shyotl
2019-03-25 02:56:20 -05:00
parent d61f89e3c9
commit f3afe45e72
3 changed files with 5 additions and 6 deletions

View File

@@ -549,8 +549,8 @@ void LLGLManager::initWGL()
#if LL_WINDOWS && !LL_MESA_HEADLESS
if (ExtensionExists("WGL_ARB_pixel_format"))
{
wglGetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC)wglGetProcAddress("wglGetPixelFormatAttribiv");
wglChoosePixelFormatARB = (PFNWGLCHOOSEPIXELFORMATARBPROC)wglGetProcAddress("wglChoosePixelFormat");
wglGetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC)wglGetProcAddress("wglGetPixelFormatAttribivARB");
wglChoosePixelFormatARB = (PFNWGLCHOOSEPIXELFORMATARBPROC)wglGetProcAddress("wglChoosePixelFormatARB");
}
else
{
@@ -559,7 +559,7 @@ void LLGLManager::initWGL()
if (ExtensionExists("WGL_ARB_create_context"))
{
wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)wglGetProcAddress("wglCreateContextAttribs");
wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)wglGetProcAddress("wglCreateContextAttribsARB");
}
else
{