summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/Render.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-11-26 21:33:47 +0100
committerdegasus <wickmarkus@web.de>2014-11-26 21:33:47 +0100
commitc63a38088a6dd786efcfb84f68d38587ebc7eaae (patch)
tree8c017c2abfc11b13b08977be30467cd3880ac3c3 /Source/Core/VideoBackends/OGL/Render.cpp
parentf151f5ed23e103dc1278918397ce82b5fc0f32a7 (diff)
OGL: require GL version >= 3.0
This "fix" a crash because of glVertexAttribI only available on gl3+ contexts.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Render.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/Render.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp
index b66d24b0fd..09f979f849 100644
--- a/Source/Core/VideoBackends/OGL/Render.cpp
+++ b/Source/Core/VideoBackends/OGL/Render.cpp
@@ -441,13 +441,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;
}