git.ucc.asn.au
/
ipdf
/
code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5d9bd33
)
Fix GL version detection.
author
David Gow
<
[email protected]
>
Fri, 10 Oct 2014 04:15:21 +0000
(12:15 +0800)
committer
David Gow
<
[email protected]
>
Fri, 10 Oct 2014 04:15:21 +0000
(12:15 +0800)
src/screen.cpp
patch
|
blob
|
history
diff --git
a/src/screen.cpp
b/src/screen.cpp
index
5c11fe1
..
16a3ab8
100644
(file)
--- a/
src/screen.cpp
+++ b/
src/screen.cpp
@@
-54,19
+54,19
@@
Screen::Screen(bool visible)
ogl_LoadFunctions();
// Why is this so horribly broken?
ogl_LoadFunctions();
// Why is this so horribly broken?
- if (ogl_IsVersionGEQ(3,
0
))
+ if (ogl_IsVersionGEQ(3,
2
))
{
{
-
Error("We require OpenGL 3.1
, but you have version %d.%d!",ogl_GetMajorVersion(), ogl_GetMinorVersion());
+
Fatal("We require OpenGL 3.3
, but you have version %d.%d!",ogl_GetMajorVersion(), ogl_GetMinorVersion());
}
if (!SDL_GL_ExtensionSupported("GL_ARB_shading_language_420pack"))
{
}
if (!SDL_GL_ExtensionSupported("GL_ARB_shading_language_420pack"))
{
-
Error
("Your system does not support the ARB_shading_language_420pack extension, which is required.");
+
Fatal
("Your system does not support the ARB_shading_language_420pack extension, which is required.");
}
if (!SDL_GL_ExtensionSupported("GL_ARB_explicit_attrib_location"))
{
}
if (!SDL_GL_ExtensionSupported("GL_ARB_explicit_attrib_location"))
{
-
Error
("Your system does not support the ARB_explicit_attrib_location extension, which is required.");
+
Fatal
("Your system does not support the ARB_explicit_attrib_location extension, which is required.");
}
m_frame_begin_time = SDL_GetPerformanceCounter();
}
m_frame_begin_time = SDL_GetPerformanceCounter();
UCC
git Repository :: git.ucc.asn.au