Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
disable pinned memory for fglrx
  • Loading branch information
degasus committed Mar 17, 2013
1 parent 8faefa3 commit 4a8ab0f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
Expand Up @@ -244,9 +244,11 @@ Renderer::Renderer()
bSuccess = false;
}

if (!GLEW_ARB_sampler_objects)
if (!GLEW_ARB_sampler_objects && bSuccess)
{
ERROR_LOG(VIDEO, "GPU: OGL ERROR: Need GL_ARB_sampler_objects.");
ERROR_LOG(VIDEO, "GPU: OGL ERROR: Need GL_ARB_sampler_objects."
"GPU: Does your video card support OpenGL 3.2?"
"Please report this issue, then there will be a workaround");
bSuccess = false;
}

Expand All @@ -266,6 +268,13 @@ Renderer::Renderer()
g_Config.backend_info.bSupportsGLSLUBO = false;
ERROR_LOG(VIDEO, "buggy driver detected. Disable UBO");
}

#ifndef _WIN32
if(g_Config.backend_info.bSupportsGLPinnedMemory && !strcmp(gl_vendor, "Advanced Micro Devices, Inc.")) {
g_Config.backend_info.bSupportsGLPinnedMemory = false;
ERROR_LOG(VIDEO, "some fglrx versions have broken pinned memory support, so it's disabled for fglrx");
}
#endif

UpdateActiveConfig();
OSD::AddMessage(StringFromFormat("Missing Extensions: %s%s%s%s%s%s",
Expand Down

0 comments on commit 4a8ab0f

Please sign in to comment.