Skip to content

Commit

Permalink
Merge pull request #1595 from degasus/master
Browse files Browse the repository at this point in the history
OGL: require GL version >= 3.0
  • Loading branch information
Sonicadvance1 committed Nov 29, 2014
2 parents c2e5715 + c63a380 commit 2d2baec
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Source/Core/VideoBackends/OGL/Render.cpp
Expand Up @@ -447,13 +447,20 @@ Renderer::Renderer()
bSuccess = false;
}

if (!GLExtensions::Supports("GL_ARB_sampler_objects") && bSuccess)
if (!GLExtensions::Supports("GL_ARB_sampler_objects"))
{
// Our sampler cache uses this extension. It could easyly be workaround and it's by far the
// highest requirement, but it seems that no driver lacks support for it.
PanicAlert("GPU: OGL ERROR: Need GL_ARB_sampler_objects."
"GPU: Does your video card support OpenGL 3.3?"
"Please report this issue, then there will be a workaround");
PanicAlert("GPU: OGL ERROR: Need GL_ARB_sampler_objects.\n"
"GPU: Does your video card support OpenGL 3.3?");
bSuccess = false;
}

if (GLExtensions::Version() < 300)
{
// integer vertex attributes require a gl3 only function
PanicAlert("GPU: OGL ERROR: Need OpenGL version 3.\n"
"GPU: Does your video card support OpenGL 3?");
bSuccess = false;
}

Expand Down

0 comments on commit 2d2baec

Please sign in to comment.