display unsupported extensions
This commit is contained in:
parent
3a6bd8341d
commit
c33741d324
|
@ -0,0 +1,3 @@
|
|||
edubart - leader developer (project creator) <edub4rt@gmail.com>
|
||||
andrefaramir - scripting (implemented battle, hotkeys, chat, ..) <andre_faramir@hotmail.com>
|
||||
baxnie - inactive (implemented first game functionality) <henrique_santiago93@hotmail.com>
|
|
@ -31,15 +31,9 @@ We encourage you to contribute to OTClient! Please check out
|
|||
|
||||
== Contact
|
||||
|
||||
You have 3 options, post at http://otclient.info/ , talk directly with us at #otclient irc.freenode.net or send
|
||||
You have 3 options, use the forum at http://otclient.info/ , talk directly with us at #otclient irc.freenode.net or send
|
||||
an email directly to the project leader edub4rt@gmail.com
|
||||
|
||||
== Authors
|
||||
|
||||
* edubart (project creator and leader developer) <edub4rt@gmail.com>
|
||||
* baxnie (official developer) <henrique_santiago93@hotmail.com>
|
||||
* andrefaramir (official developer) <andre_faramir@hotmail.com>
|
||||
|
||||
== License
|
||||
|
||||
OTClient is made available under the MIT License, thus this means that you can do whatever you want, commercial, non-commercial, closed or open.
|
||||
|
|
|
@ -127,7 +127,6 @@ function Terminal.init()
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
terminalButton = TopMenu.addLeftButton('terminalButton', 'Terminal (Ctrl + T)', 'terminal.png', Terminal.toggle)
|
||||
Keyboard.bindKeyDown('Ctrl+T', Terminal.toggle)
|
||||
|
||||
|
|
|
@ -39,10 +39,26 @@ void Graphics::init()
|
|||
if(err != GLEW_OK)
|
||||
logFatal("Unable to init GLEW: ", glewGetErrorString(err));
|
||||
|
||||
if(!GLEW_ARB_vertex_program || !GLEW_ARB_vertex_shader ||
|
||||
!GLEW_ARB_fragment_program || !GLEW_ARB_fragment_shader ||
|
||||
!GLEW_ARB_texture_non_power_of_two || !GLEW_ARB_multitexture)
|
||||
logFatal("Some OpenGL 2.0 extensions is not supported by your system graphics, please try updating your video drivers or buy a new hardware.");
|
||||
const char *requiredExtensions[] = {
|
||||
"GL_ARB_vertex_program",
|
||||
"GL_ARB_vertex_shader",
|
||||
"GL_ARB_fragment_program",
|
||||
"GL_ARB_fragment_shader",
|
||||
"GL_ARB_texture_non_power_of_two",
|
||||
"GL_ARB_multitexture"
|
||||
};
|
||||
|
||||
std::stringstream ss;
|
||||
bool unsupported = false;
|
||||
for(auto ext : requiredExtensions) {
|
||||
if(!glewIsSupported(ext)) {
|
||||
ss << ext << std::endl;
|
||||
unsupported = true;
|
||||
}
|
||||
}
|
||||
|
||||
if(unsupported)
|
||||
logFatal("The following OpenGL 2.0 extensions are not supported by your system graphics, please try updating your video drivers or buy a new hardware:\n", ss.str());
|
||||
|
||||
m_useFBO = m_useFBO && GLEW_ARB_framebuffer_object;
|
||||
m_generateHardwareMipmaps = m_generateHardwareMipmaps && m_useFBO; // glGenerateMipmap is supported when FBO is
|
||||
|
|
Loading…
Reference in New Issue