OpenGL 2.0 is needed to query GLSL version

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8296 4a71c877-e1ca-e34f-864e-861f7616d084
master
Christian Ohm 2009-10-14 20:32:21 +00:00 committed by Git SVN Gateway
parent 9128fd00da
commit 1f52695730
1 changed files with 9 additions and 3 deletions

View File

@ -170,8 +170,11 @@ BOOL screenInitialise(
addDumpInfo(buf);
ssprintf(buf, "OpenGL Version : %s", glGetString(GL_VERSION));
addDumpInfo(buf);
ssprintf(buf, "OpenGL GLSL Version : %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
addDumpInfo(buf);
if (GLEE_VERSION_2_0)
{
ssprintf(buf, "OpenGL GLSL Version : %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
addDumpInfo(buf);
}
ssprintf(buf, "Video Mode %d x %d (%d bpp) (%s)", width, height, bpp, fullScreen ? "fullscreen" : "window");
addDumpInfo(buf);
/* Dump information about OpenGL implementation to the console */
@ -196,7 +199,10 @@ BOOL screenInitialise(
debug(LOG_3D, " * FrameBuffer Object (FBO) %s supported.", GLEE_EXT_framebuffer_object ? "is" : "is NOT");
debug(LOG_3D, " * Shader Objects %s supported.", GL_ARB_shader_objects ? "is" : "is NOT");
debug(LOG_3D, " * Vertex Buffer Object (VBO) %s supported.", GL_ARB_vertex_buffer_object ? "is" : "is NOT");
debug(LOG_3D, " * OpenGL GLSL Version : %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
if (GLEE_VERSION_2_0)
{
debug(LOG_3D, " * OpenGL GLSL Version : %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
}
}
#ifndef WZ_OS_MAC