diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 850d5f6f3..f97c1039e 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -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 { diff --git a/indra/newview/app_settings/shaders/class1/deferred/dofCombineF.glsl b/indra/newview/app_settings/shaders/class1/deferred/dofCombineF.glsl index 9f0158bfd..550d2fa07 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/dofCombineF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/dofCombineF.glsl @@ -40,7 +40,7 @@ uniform float max_cof; uniform float res_scale; uniform float dof_width; uniform float dof_height; -uniform float kern_scale; +uniform vec2 kern_scale; VARYING vec2 vary_fragcoord; diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 024075303..08e7bd77e 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -4146,10 +4146,9 @@ void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate) if (!gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_HUD)) { updateHWLightMode(LIGHT_MODE_NORMAL); + llassert_always(LLGLState::checkEnabled()); } - llassert_always(LLGLState::checkEnabled()); - BOOL occlude = sUseOcclusion > 1; U32 cur_type = 0;